diff --git a/src/Mod/Arch/ArchSectionPlane.py b/src/Mod/Arch/ArchSectionPlane.py index 440bdd0405..86c376635e 100644 --- a/src/Mod/Arch/ArchSectionPlane.py +++ b/src/Mod/Arch/ArchSectionPlane.py @@ -375,9 +375,12 @@ def getSVG(source, drafts.append(o) elif o.isDerivedFrom("Part::Part2DObject"): drafts.append(o) + elif o.isDerivedFrom("App::DocumentObjectGroup"): + # These will have been expanded by getSectionData already + pass elif looksLikeDraft(o): drafts.append(o) - elif not o.isDerivedFrom("App::DocumentObjectGroup"): + else: nonspaces.append(o) if Draft.getType(o.getLinkedObject()) == "Window": # To support Link of Windows(Doors) windows.append(o) diff --git a/src/Mod/Draft/draftutils/groups.py b/src/Mod/Draft/draftutils/groups.py index d8fd3761ac..c1557fb552 100644 --- a/src/Mod/Draft/draftutils/groups.py +++ b/src/Mod/Draft/draftutils/groups.py @@ -197,8 +197,8 @@ def get_group_contents(objectslist, spaces: bool, optional It defaults to `False`. - If it is `True`, Arch Spaces are treated as groups, - and are added to the output list. + If it is `True`, Arch Spaces are added to the output list even + when addgroups is False (their contents are always added). noarchchild: bool, optional It defaults to `False`.