mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 18:43:26 +00:00
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
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user