From 9000948f6bd82d994473ccda5f5d5e07445feb21 Mon Sep 17 00:00:00 2001 From: Abdelhadi Wael Date: Thu, 20 Mar 2025 01:51:16 +0200 Subject: [PATCH] Update src/Gui/CommandStructure.cpp Co-authored-by: Florian Foinant-Willig --- src/Gui/CommandStructure.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Gui/CommandStructure.cpp b/src/Gui/CommandStructure.cpp index c0490e719c..ab1e0c5584 100644 --- a/src/Gui/CommandStructure.cpp +++ b/src/Gui/CommandStructure.cpp @@ -82,8 +82,7 @@ void StdCmdPart::activated(int iMsg) " if hasattr(obj, 'OutList') and len(obj.OutList) > 0:\n" " for child in obj.OutList:\n" " App.activeDocument().%s.addObject(child)\n" - " else:\n" - " App.activeDocument().%s.addObject(obj)\n", + " App.activeDocument().%s.addObject(obj)\n", PartName.c_str(), PartName.c_str()); doCommand(Gui::Command::Gui, "Gui.activateView('Gui::View3DInventor', True)\n"