Assembly: ignore joints in error (#20253)

Co-authored-by: drwho495 <drwho495555@gmail.com>
This commit is contained in:
PaddleStroke
2025-03-22 18:27:24 +01:00
committed by GitHub
parent 91c588d449
commit 11ff46f84a
2 changed files with 19 additions and 5 deletions

View File

@@ -652,7 +652,7 @@ AssemblyObject::getJoints(bool updateJCS, bool delBadJoints, bool subJoints)
}
auto* prop = dynamic_cast<App::PropertyBool*>(joint->getPropertyByName("Activated"));
if (!prop || !prop->getValue()) {
if (joint->isError() || !prop || !prop->getValue()) {
// Filter grounded joints and deactivated joints.
continue;
}