Set apply default materials to False #4833

Since it's now True by default in v0.8.0, resetting it to False as it was in v0.7.0
This commit is contained in:
Andrej730
2024-06-11 12:25:58 +05:00
parent f54f45a051
commit 6630db21ee
3 changed files with 4 additions and 0 deletions
@@ -399,6 +399,7 @@ class IfcImporter:
settings.set("mesher-angular-deflection", self.ifc_import_settings.angular_tolerance)
settings.set("dimensionality", ifcopenshell.ifcopenshell_wrapper.CURVES_SURFACES_AND_SOLIDS)
settings.set("context-ids", [context.id()])
settings.set("apply-default-materials", False)
self.context_settings.append(settings)
settings = ifcopenshell.geom.settings()
@@ -407,6 +408,7 @@ class IfcImporter:
settings.set("dimensionality", ifcopenshell.ifcopenshell_wrapper.CURVES_SURFACES_AND_SOLIDS)
settings.set("disable-opening-subtractions", True)
settings.set("context-ids", [context.id()])
settings.set("apply-default-materials", False)
self.gross_context_settings.append(settings)
def process_element_filter(self) -> None:
@@ -1292,6 +1292,7 @@ class LoadLinkedProject(bpy.types.Operator):
for settings in ifc_importer.context_settings:
settings = ifcopenshell.geom.settings()
settings.set("apply-default-materials", False)
if has_model_offset:
offset = ifcopenshell.ifcopenshell_wrapper.float_array_3()
+1
View File
@@ -180,6 +180,7 @@ class Patcher:
self.elements = self.file.by_type("IfcElement")
self.settings = ifcopenshell.geom.settings()
self.settings.set("apply-default-materials", False)
self.body_contexts = [
c.id()