GUI: Refactor - removed soft dependency from freeze toggle

This commit is contained in:
Leticia Vong
2025-04-25 15:54:03 +01:00
committed by Benjamin Nauck
parent 6c7ffe87e3
commit 7a5487670c

View File

@@ -186,14 +186,8 @@ void StdCmdToggleFreeze::activated(int iMsg)
obj->unfreeze();
for (auto child : obj->getInListRecursive())
child->unfreeze();
if (obj->isDerivedFrom(Base::Type::fromName("PartDesign::Body"))) {
for (auto child : obj->getOutListRecursive())
child->unfreeze();
}
else {
for (auto child : obj->getOutList())
child->unfreeze();
}
for (auto child : obj->getOutListRecursive())
child->unfreeze();
} else {
obj->freeze();
for (auto parent : obj->getOutListRecursive())