Core: freeze is no more recursive on children

This commit is contained in:
Florian Foinant-Willig
2025-09-23 22:42:56 +02:00
parent d15d9948bc
commit 09ab65ce1a

View File

@@ -176,19 +176,14 @@ void StdCmdToggleFreeze::activated(int iMsg)
Command::openCommand(QT_TRANSLATE_NOOP("Command", "Toggle freeze"));
for (Gui::SelectionSingleton::SelObj& sel : sels) {
App::DocumentObject* obj = sel.pObject;
if (!obj)
if (!obj) {
continue;
}
if (obj->isFreezed()){
obj->unfreeze();
for (auto child : obj->getInListRecursive())
child->unfreeze();
for (auto child : obj->getOutListRecursive())
child->unfreeze();
} else {
obj->freeze();
for (auto parent : obj->getOutListRecursive())
parent->freeze();
}
}