BlenderBIM make fca90e9 optional

setup_viewport_camera() does a 'zoom extents' on IFC import.
Create a should_setup_viewport_camera option (default True)
This commit is contained in:
Bruno Postle
2023-10-06 22:34:43 +01:00
parent 9c5970e757
commit 7229f7271c
+3 -1
View File
@@ -311,7 +311,8 @@ class IfcImporter:
self.profile_code("Merging by colour")
self.set_default_context()
self.profile_code("Setting default context")
self.setup_viewport_camera()
if self.ifc_import_settings.should_setup_viewport_camera:
self.setup_viewport_camera()
self.setup_arrays()
self.update_progress(100)
bpy.context.window_manager.progress_end()
@@ -1967,6 +1968,7 @@ class IfcImportSettings:
self.element_limit = 30000
self.has_filter = None
self.should_filter_spatial_elements = True
self.should_setup_viewport_camera = True
self.elements = set()
self.collection_mode = "DECOMPOSITION"