From b31a6d8b69a1398cacc2c705f965b219c241d4e5 Mon Sep 17 00:00:00 2001 From: Abdelhadi Wael Date: Tue, 22 Apr 2025 03:08:07 +0200 Subject: [PATCH] Remove filter excluding Spreadsheet objects --- src/Gui/CommandStructure.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Gui/CommandStructure.cpp b/src/Gui/CommandStructure.cpp index ab1e0c5584..b465c4055c 100644 --- a/src/Gui/CommandStructure.cpp +++ b/src/Gui/CommandStructure.cpp @@ -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"