mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
geometry.import_representation to disable apply-default-materials #4832
as material creator is not designed for this option
This commit is contained in:
@@ -515,6 +515,7 @@ class Geometry(blenderbim.core.tool.Geometry):
|
|||||||
element = tool.Ifc.get_entity(obj)
|
element = tool.Ifc.get_entity(obj)
|
||||||
settings = ifcopenshell.geom.settings()
|
settings = ifcopenshell.geom.settings()
|
||||||
settings.set("weld-vertices", True)
|
settings.set("weld-vertices", True)
|
||||||
|
settings.set("apply-default-materials", False)
|
||||||
context = representation.ContextOfItems
|
context = representation.ContextOfItems
|
||||||
|
|
||||||
if element.is_a("IfcTypeProduct"):
|
if element.is_a("IfcTypeProduct"):
|
||||||
|
|||||||
Reference in New Issue
Block a user