When updating representations, the existing representation type is prioritised unless you tell it otherwise. See #1748.

This commit is contained in:
Dion Moult
2021-10-21 18:39:14 +11:00
parent d6cb94c6f1
commit 525e6debd5
3 changed files with 27 additions and 0 deletions
@@ -102,6 +102,7 @@ class Geometry(blenderbim.core.tool.Geometry):
ifc_import_settings = blenderbim.bim.import_ifc.IfcImportSettings.factory(bpy.context, None, logger)
element = tool.Ifc.get_entity(obj)
settings = ifcopenshell.geom.settings()
settings.set(settings.WELD_VERTICES, True)
if representation.ContextOfItems.ContextIdentifier == "Body":
if element.is_a("IfcTypeProduct") or enable_dynamic_voids: