diff --git a/src/bonsai/bonsai/bim/module/project/operator.py b/src/bonsai/bonsai/bim/module/project/operator.py index 715cb084c6..8f50d8a888 100644 --- a/src/bonsai/bonsai/bim/module/project/operator.py +++ b/src/bonsai/bonsai/bim/module/project/operator.py @@ -683,7 +683,7 @@ class LoadProject(bpy.types.Operator, IFCFileSelector): ) should_start_fresh_session: bpy.props.BoolProperty( name="Should Start Fresh Session", - description="Clear current Blender session before loading IFC", + description="Clear current Blender session before loading IFC. Not supported with 'Use Relative Path' option", default=True, ) import_without_ifc_data: bpy.props.BoolProperty( @@ -746,6 +746,9 @@ class LoadProject(bpy.types.Operator, IFCFileSelector): bpy.app.handlers.load_post.remove(load_handler) self.finish_loading_project(context) + if self.use_relative_path: + self.should_start_fresh_session = False + if self.should_start_fresh_session: # WARNING: wm.read_homefile clears context which could lead to some # operators to fail: @@ -798,6 +801,8 @@ class LoadProject(bpy.types.Operator, IFCFileSelector): return {"RUNNING_MODAL"} def draw(self, context): + if self.use_relative_path: + self.should_start_fresh_session = False self.layout.prop(self, "is_advanced") self.layout.prop(self, "should_start_fresh_session") self.layout.prop(self, "import_without_ifc_data")