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:
PaddleStroke
2025-10-14 11:40:10 +02:00
committed by GitHub
parent c55e1c3bba
commit a0c28aba75
4 changed files with 24 additions and 1 deletions

View File

@@ -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",