mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 11:18:18 +00:00
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:
@@ -399,6 +399,7 @@ class IfcImporter:
|
|||||||
settings.set("mesher-angular-deflection", self.ifc_import_settings.angular_tolerance)
|
settings.set("mesher-angular-deflection", self.ifc_import_settings.angular_tolerance)
|
||||||
settings.set("dimensionality", ifcopenshell.ifcopenshell_wrapper.CURVES_SURFACES_AND_SOLIDS)
|
settings.set("dimensionality", ifcopenshell.ifcopenshell_wrapper.CURVES_SURFACES_AND_SOLIDS)
|
||||||
settings.set("context-ids", [context.id()])
|
settings.set("context-ids", [context.id()])
|
||||||
|
settings.set("apply-default-materials", False)
|
||||||
self.context_settings.append(settings)
|
self.context_settings.append(settings)
|
||||||
|
|
||||||
settings = ifcopenshell.geom.settings()
|
settings = ifcopenshell.geom.settings()
|
||||||
@@ -407,6 +408,7 @@ class IfcImporter:
|
|||||||
settings.set("dimensionality", ifcopenshell.ifcopenshell_wrapper.CURVES_SURFACES_AND_SOLIDS)
|
settings.set("dimensionality", ifcopenshell.ifcopenshell_wrapper.CURVES_SURFACES_AND_SOLIDS)
|
||||||
settings.set("disable-opening-subtractions", True)
|
settings.set("disable-opening-subtractions", True)
|
||||||
settings.set("context-ids", [context.id()])
|
settings.set("context-ids", [context.id()])
|
||||||
|
settings.set("apply-default-materials", False)
|
||||||
self.gross_context_settings.append(settings)
|
self.gross_context_settings.append(settings)
|
||||||
|
|
||||||
def process_element_filter(self) -> None:
|
def process_element_filter(self) -> None:
|
||||||
|
|||||||
@@ -1292,6 +1292,7 @@ class LoadLinkedProject(bpy.types.Operator):
|
|||||||
|
|
||||||
for settings in ifc_importer.context_settings:
|
for settings in ifc_importer.context_settings:
|
||||||
settings = ifcopenshell.geom.settings()
|
settings = ifcopenshell.geom.settings()
|
||||||
|
settings.set("apply-default-materials", False)
|
||||||
|
|
||||||
if has_model_offset:
|
if has_model_offset:
|
||||||
offset = ifcopenshell.ifcopenshell_wrapper.float_array_3()
|
offset = ifcopenshell.ifcopenshell_wrapper.float_array_3()
|
||||||
|
|||||||
@@ -180,6 +180,7 @@ class Patcher:
|
|||||||
self.elements = self.file.by_type("IfcElement")
|
self.elements = self.file.by_type("IfcElement")
|
||||||
|
|
||||||
self.settings = ifcopenshell.geom.settings()
|
self.settings = ifcopenshell.geom.settings()
|
||||||
|
self.settings.set("apply-default-materials", False)
|
||||||
|
|
||||||
self.body_contexts = [
|
self.body_contexts = [
|
||||||
c.id()
|
c.id()
|
||||||
|
|||||||
Reference in New Issue
Block a user