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:
Leticia Vong
2025-03-24 14:00:13 +00:00
committed by Chris Hennes
parent f7882c99c4
commit 72c1659e4d

View File

@@ -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())