From aefbc134eaea051e23f54121961a2cdb8a7c9c0b Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Sun, 30 Apr 2023 09:24:03 +1000 Subject: [PATCH] Cut merging now only applies to particular elements for the majority of cases. Drawing generation can be twice as fast due to this. --- src/blenderbim/blenderbim/bim/module/drawing/operator.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/blenderbim/blenderbim/bim/module/drawing/operator.py b/src/blenderbim/blenderbim/bim/module/drawing/operator.py index 352a0d0542..0152bc23a5 100644 --- a/src/blenderbim/blenderbim/bim/module/drawing/operator.py +++ b/src/blenderbim/blenderbim/bim/module/drawing/operator.py @@ -829,6 +829,10 @@ class CreateDrawing(bpy.types.Operator): ifc = tool.Ifc.get() for el in root.findall(".//{http://www.w3.org/2000/svg}g[@{http://www.ifcopenshell.org/ns}guid]"): element = ifc.by_guid(el.get("{http://www.ifcopenshell.org/ns}guid")) + # Architectural convention only merges these objects. E.g. pipe segments and fittings shouldn't merge. + if not element.is_a("IfcWall") and not element.is_a("IfcSlab"): + continue + classes = self.get_svg_classes(element) classes.append("cut")