Update src/Gui/CommandStructure.cpp

Co-authored-by: Florian Foinant-Willig <FlachyJoe@users.noreply.github.com>
This commit is contained in:
Abdelhadi Wael
2025-03-20 01:51:16 +02:00
committed by Chris Hennes
parent 13be1ad37f
commit 9000948f6b

View File

@@ -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"