constraint.Axis can return false if the constraint wasn't created, whoever it seems like the axis tool doesn't account for that resulting in false being passed into AddCleanup and other functions.
This doesn't cause any errors as both functions have safeguards against it, i felt like it was worth making an issue for as its sorta unintended behavior regardless. I haven't checked other tools but i assume they might have the same issue.
Details
constraint.Axis
can return false if the constraint wasn't created, whoever it seems like the axis tool doesn't account for that resulting infalse
being passed intoAddCleanup
and other functions.https://github.com/Facepunch/garrysmod/blob/cb7ab3cc7bec244cd6874fe086e3b1aed9f77a6c/garrysmod/gamemodes/sandbox/entities/weapons/gmod_tool/stools/axis.lua#L85
https://github.com/Facepunch/garrysmod/blob/cb7ab3cc7bec244cd6874fe086e3b1aed9f77a6c/garrysmod/gamemodes/sandbox/entities/weapons/gmod_tool/stools/axis.lua#L92
This doesn't cause any errors as both functions have safeguards against it, i felt like it was worth making an issue for as its sorta unintended behavior regardless. I haven't checked other tools but i assume they might have the same issue.