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 94a45ae097
commit f27f5bba37

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