From f27f5bba3726ea23b68f921a1506117f045ff569 Mon Sep 17 00:00:00 2001 From: PaddleStroke Date: Tue, 12 Mar 2024 18:53:41 +0100 Subject: [PATCH] Assembly: Fix #12887: changing offset can move grounded parts in some cases. --- src/Mod/Assembly/App/AssemblyObject.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Mod/Assembly/App/AssemblyObject.cpp b/src/Mod/Assembly/App/AssemblyObject.cpp index 6a2dedc42f..a88c1c8ce3 100644 --- a/src/Mod/Assembly/App/AssemblyObject.cpp +++ b/src/Mod/Assembly/App/AssemblyObject.cpp @@ -585,6 +585,13 @@ bool AssemblyObject::isJointConnectingPartToGround(App::DocumentObject* joint, c return false; } App::DocumentObject* part = propPart->getValue(); + + // Check if the part is grounded. + bool isGrounded = isPartGrounded(part); + if (isGrounded) { + return false; + } + // Check if the part is disconnected even with the joint bool isConnected = isPartConnected(part); if (!isConnected) {