From ea048829f7ee3f83bc62d40481b32917d261e437 Mon Sep 17 00:00:00 2001 From: Roy-043 <70520633+Roy-043@users.noreply.github.com> Date: Mon, 22 Dec 2025 18:12:46 +0100 Subject: [PATCH] Part: fix Part_EditAttachment unitless input error (#25923) (cherry picked from commit 3a5f5d70ee48bfa3b90af6557f2a4efff27298c9) --- .../Part/AttachmentEditor/TaskAttachmentEditor.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Mod/Part/AttachmentEditor/TaskAttachmentEditor.py b/src/Mod/Part/AttachmentEditor/TaskAttachmentEditor.py index f32916b6c6..66b37a8c01 100644 --- a/src/Mod/Part/AttachmentEditor/TaskAttachmentEditor.py +++ b/src/Mod/Part/AttachmentEditor/TaskAttachmentEditor.py @@ -497,17 +497,17 @@ class AttachmentEditorTaskPanel(FrozenClass): plm = self.attacher.AttachmentOffset pos = plm.Base if index == 0: - pos.x = Q(self.form.attachmentOffsetX.text()).getValueAs(mm) + pos.x = Q(self.form.attachmentOffsetX.text()).Value if index == 1: - pos.y = Q(self.form.attachmentOffsetY.text()).getValueAs(mm) + pos.y = Q(self.form.attachmentOffsetY.text()).Value if index == 2: - pos.z = Q(self.form.attachmentOffsetZ.text()).getValueAs(mm) + pos.z = Q(self.form.attachmentOffsetZ.text()).Value if index >= 0 and index <= 2: plm.Base = pos if index >= 3 and index <= 5: - yaw = Q(self.form.attachmentOffsetYaw.text()).getValueAs(deg) - pitch = Q(self.form.attachmentOffsetPitch.text()).getValueAs(deg) - roll = Q(self.form.attachmentOffsetRoll.text()).getValueAs(deg) + yaw = Q(self.form.attachmentOffsetYaw.text()).Value + pitch = Q(self.form.attachmentOffsetPitch.text()).Value + roll = Q(self.form.attachmentOffsetRoll.text()).Value rot = App.Rotation(yaw, pitch, roll) plm.Rotation = rot