Merge pull request #4780 from matthijskooijman/fix-flat-groups-section-view

Arch: Fix section view duplicate rendering of items in groups with only flat objects
This commit is contained in:
Yorik van Havre
2021-05-11 12:13:09 +02:00
committed by GitHub
2 changed files with 6 additions and 3 deletions

View File

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

View File

@@ -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`.