From 72c1659e4dc91a9d09fa688b8173f5a3e0d57531 Mon Sep 17 00:00:00 2001 From: Leticia Vong Date: Mon, 24 Mar 2025 14:00:13 +0000 Subject: [PATCH] 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. --- src/Gui/CommandFeat.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Gui/CommandFeat.cpp b/src/Gui/CommandFeat.cpp index b2e5504b82..c4a14a4acb 100644 --- a/src/Gui/CommandFeat.cpp +++ b/src/Gui/CommandFeat.cpp @@ -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())