From 3c396d3180902db1742d3aff77d42c9c1e4727f5 Mon Sep 17 00:00:00 2001 From: Bruno Postle Date: Sun, 19 Nov 2023 10:49:58 +0000 Subject: [PATCH] IfcGit.load_project() can be used to refresh scene If no file path is given, clear blender objects and regenerate the scene from the current ifc project in IfcStore --- src/blenderbim/blenderbim/tool/ifcgit.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/blenderbim/blenderbim/tool/ifcgit.py b/src/blenderbim/blenderbim/tool/ifcgit.py index a4f60d7bba..a09ab5ad1b 100644 --- a/src/blenderbim/blenderbim/tool/ifcgit.py +++ b/src/blenderbim/blenderbim/tool/ifcgit.py @@ -207,10 +207,11 @@ class IfcGit: ) @classmethod - def load_project(cls, path_ifc): + def load_project(cls, path_ifc=""): """Clear and load an ifc project""" - IfcStore.purge() + if path_ifc: + IfcStore.purge() # delete any IfcProject/* collections for collection in bpy.data.collections: if re.match("^IfcProject/", collection.name):