From 09ab65ce1a54082c25cb08b4236d00a07add7a9f Mon Sep 17 00:00:00 2001 From: Florian Foinant-Willig Date: Tue, 23 Sep 2025 22:42:56 +0200 Subject: [PATCH] Core: freeze is no more recursive on children --- src/Gui/CommandFeat.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/Gui/CommandFeat.cpp b/src/Gui/CommandFeat.cpp index 400b54a7df..3029b426a3 100644 --- a/src/Gui/CommandFeat.cpp +++ b/src/Gui/CommandFeat.cpp @@ -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(); } }