GUI: Fix #18806 Toggle freeze behavior
Previously, StdCmdToggleFreeze only unfroze child objects using getInListRecursive(). This update ensures that dependent objects are properly unfrozen. Freezing behavior remains unchanged.
This commit is contained in:
committed by
Chris Hennes
parent
f7882c99c4
commit
72c1659e4d
@@ -185,6 +185,14 @@ 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();
|
||||
}
|
||||
} else {
|
||||
obj->freeze();
|
||||
for (auto parent : obj->getOutListRecursive())
|
||||
|
||||
Reference in New Issue
Block a user