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:
@@ -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)
|
||||
|
||||
@@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user