Assembly: Joint task: fix spinbox not being populated

This commit is contained in:
PaddleStroke
2025-11-24 16:06:41 +01:00
committed by Chris Hennes
parent 6392935ad8
commit eb38196fd2

View File

@@ -1837,8 +1837,8 @@ class TaskAssemblyCreateJoint(QtCore.QObject):
Gui.Selection.addSelection(ref2[0].Document.Name, ref2[0].Name, ref2[1][0])
self.jForm.angleSpinbox.setProperty("rawValue", self.joint.Angle.Value)
self.jForm.distanceSpinbox.setProperty("rawValue", self.joint.Distance)
self.jForm.distanceSpinbox2.setProperty("rawValue", self.joint.Distance2)
self.jForm.distanceSpinbox.setProperty("rawValue", self.joint.Distance.Value)
self.jForm.distanceSpinbox2.setProperty("rawValue", self.joint.Distance2.Value)
self.jForm.offsetSpinbox.setProperty("rawValue", self.joint.Offset2.Base.z)
self.jForm.rotationSpinbox.setProperty(
"rawValue", self.joint.Offset2.Rotation.getYawPitchRoll()[0]
@@ -1848,8 +1848,8 @@ class TaskAssemblyCreateJoint(QtCore.QObject):
self.jForm.limitCheckbox2.setChecked(self.joint.EnableLengthMax)
self.jForm.limitCheckbox3.setChecked(self.joint.EnableAngleMin)
self.jForm.limitCheckbox4.setChecked(self.joint.EnableAngleMax)
self.jForm.limitLenMinSpinbox.setProperty("rawValue", self.joint.LengthMin)
self.jForm.limitLenMaxSpinbox.setProperty("rawValue", self.joint.LengthMax)
self.jForm.limitLenMinSpinbox.setProperty("rawValue", self.joint.LengthMin.Value)
self.jForm.limitLenMaxSpinbox.setProperty("rawValue", self.joint.LengthMax.Value)
self.jForm.limitRotMinSpinbox.setProperty("rawValue", self.joint.AngleMin.Value)
self.jForm.limitRotMaxSpinbox.setProperty("rawValue", self.joint.AngleMax.Value)