Assembly: Fix #12887: changing offset can move grounded parts in some cases.
This commit is contained in:
committed by
Yorik van Havre
parent
7aafb8d85c
commit
51feeb89f1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user