Remove filter excluding Spreadsheet objects

This commit is contained in:
Abdelhadi Wael
2025-04-22 03:08:07 +02:00
committed by Chris Hennes
parent e1fcd129b8
commit b31a6d8b69

View File

@@ -75,10 +75,7 @@ void StdCmdPart::activated(int iMsg)
"selected_objects = Gui.Selection.getSelection()\n"
"if len(selected_objects) > 1:\n"
" for obj in selected_objects:\n"
" # Exclude spreadsheets\n"
" if obj.TypeId == 'Spreadsheet::Sheet':\n"
" continue\n"
" # Add subobjects if obj is a container (optional)\n"
" # Add subobjects if obj is a container\n"
" if hasattr(obj, 'OutList') and len(obj.OutList) > 0:\n"
" for child in obj.OutList:\n"
" App.activeDocument().%s.addObject(child)\n"