Assembly: Prevent crash when toggling rigid of grounded sub assembly (#24761)
* Assembly: Prevent crash when toggling rigid of grounded sub assembly * to squash * to squash * Update AssemblyLink.cpp
This commit is contained in:
@@ -781,6 +781,11 @@ std::unordered_set<App::DocumentObject*> AssemblyObject::getGroundedParts()
|
||||
if (propObj) {
|
||||
App::DocumentObject* objToGround = propObj->getValue();
|
||||
if (objToGround) {
|
||||
if (auto* asmLink = dynamic_cast<AssemblyLink*>(objToGround)) {
|
||||
if (!asmLink->isRigid()) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
groundedSet.insert(objToGround);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user