Assembly: Replace "Activated" property by the core "Suppressed" mecha… (#22409)

* Assembly: Replace "Activated" property by the core "Suppressed" mechanism.

* Fix inaccuracy

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* move the change to migrationScript5 function

* Update JointObject.py

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
PaddleStroke
2025-07-28 18:20:01 +02:00
committed by GitHub
parent 2ee64c1732
commit 38fb1ef274
5 changed files with 33 additions and 24 deletions

View File

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