Assembly: Fix lengths cannot be negative (#24625)
* Assembly: Fix lengths cannot be negative * Update PropertyUnits.cpp * Update PropertyUnits.h * Update JointObject.py
This commit is contained in:
@@ -370,6 +370,11 @@ class Joint:
|
||||
if not hasattr(joint, "AngleMax"):
|
||||
self.addAngleMaxProperty(joint)
|
||||
|
||||
joint.setPropertyStatus("Distance", "AllowNegativeValues")
|
||||
joint.setPropertyStatus("Distance2", "AllowNegativeValues")
|
||||
joint.setPropertyStatus("LengthMin", "AllowNegativeValues")
|
||||
joint.setPropertyStatus("LengthMax", "AllowNegativeValues")
|
||||
|
||||
def addAngleProperty(self, joint):
|
||||
joint.addProperty(
|
||||
"App::PropertyAngle",
|
||||
|
||||
Reference in New Issue
Block a user