mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 02:31:09 +00:00
Fix issue using IfcImporter after 8246d2c
E.g. there was an error on creating a project using demo template
This commit is contained in:
@@ -209,6 +209,7 @@ class MaterialCreator:
|
|||||||
class IfcImporter:
|
class IfcImporter:
|
||||||
def __init__(self, ifc_import_settings: IfcImportSettings):
|
def __init__(self, ifc_import_settings: IfcImportSettings):
|
||||||
self.ifc_import_settings = ifc_import_settings
|
self.ifc_import_settings = ifc_import_settings
|
||||||
|
tool.Loader.set_settings(ifc_import_settings)
|
||||||
self.diff = None
|
self.diff = None
|
||||||
self.file: ifcopenshell.file = None
|
self.file: ifcopenshell.file = None
|
||||||
self.project = None
|
self.project = None
|
||||||
@@ -246,7 +247,6 @@ class IfcImporter:
|
|||||||
bpy.context.window_manager.progress_update(self.progress)
|
bpy.context.window_manager.progress_update(self.progress)
|
||||||
|
|
||||||
def execute(self) -> None:
|
def execute(self) -> None:
|
||||||
tool.Loader.set_settings(self.ifc_import_settings)
|
|
||||||
bpy.context.window_manager.progress_begin(0, 100)
|
bpy.context.window_manager.progress_begin(0, 100)
|
||||||
self.profile_code("Starting import process")
|
self.profile_code("Starting import process")
|
||||||
self.load_file()
|
self.load_file()
|
||||||
|
|||||||
Reference in New Issue
Block a user