From eb38196fd207d2689fa013325e8e29aad6785b13 Mon Sep 17 00:00:00 2001 From: PaddleStroke Date: Mon, 24 Nov 2025 16:06:41 +0100 Subject: [PATCH] Assembly: Joint task: fix spinbox not being populated --- src/Mod/Assembly/JointObject.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Mod/Assembly/JointObject.py b/src/Mod/Assembly/JointObject.py index 4a14a84f92..3fd820c5f1 100644 --- a/src/Mod/Assembly/JointObject.py +++ b/src/Mod/Assembly/JointObject.py @@ -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)