Core: Add Gui::Document::getTreeRootObjects()

This commit is contained in:
PaddleStroke
2024-05-30 12:20:35 +02:00
parent 238fd6a5fc
commit fb32579498
7 changed files with 57 additions and 3 deletions

View File

@@ -308,7 +308,7 @@ def getGlobalPlacement(targetObj, container=None):
def isThereOneRootAssembly():
for part in App.activeDocument().RootObjectsIgnoreLinks:
for part in Gui.activeDocument().TreeRootObjects:
if part.TypeId == "Assembly::AssemblyObject":
return True
return False