Assembly: Fix #12887: changing offset can move grounded parts in some cases.

This commit is contained in:
PaddleStroke
2024-03-12 18:53:41 +01:00
committed by Yorik van Havre
parent 7aafb8d85c
commit 51feeb89f1

View File

@@ -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) {