Draft: Use BuildingParts as group in Draft SVG projections

This commit is contained in:
Yorik van Havre
2021-08-26 14:54:33 +02:00
parent 199e8a8d6e
commit 960c626b1d

View File

@@ -428,7 +428,7 @@ def get_svg(obj,
# all the SVG strings from the contents of the group
if hasattr(obj, "isDerivedFrom"):
if (obj.isDerivedFrom("App::DocumentObjectGroup")
or utils.get_type(obj) == "Layer"):
or utils.get_type(obj) in ["Layer","BuildingPart"]):
svg = ""
for child in obj.Group:
svg += get_svg(child,