Don't unnecessarily merge materials which can be very computationally consuming on file loads (e.g. from software like Solidworks) which will be made redundant now that a new materials/style management system is WIP.

This commit is contained in:
Dion Moult
2023-11-20 16:55:37 +11:00
parent 123557939f
commit 4fb99d2eed
+1 -1
View File
@@ -296,7 +296,7 @@ class IfcImporter:
if self.ifc_import_settings.should_clean_mesh and len(self.file.by_type("IfcElement")) < 1000:
self.clean_mesh()
self.profile_code("Mesh cleaning")
if self.ifc_import_settings.should_merge_materials_by_colour or len(self.material_creator.materials) > 300:
if self.ifc_import_settings.should_merge_materials_by_colour:
self.merge_materials_by_colour()
self.profile_code("Merging by colour")
self.set_default_context()