mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 21:42:19 +00:00
Add use_factory_startup to src/bonsai/test/bim/test_feature.py def an_empty_blender_session()
This addresses https://github.com/IfcOpenShell/IfcOpenShell/issues/7590 Cheers!
This commit is contained in:
@@ -337,7 +337,7 @@ def an_untestable_scenario():
|
|||||||
def an_empty_blender_session():
|
def an_empty_blender_session():
|
||||||
IfcStore.purge()
|
IfcStore.purge()
|
||||||
if not PYTEST_BLENDER_NO_BACKGROUND:
|
if not PYTEST_BLENDER_NO_BACKGROUND:
|
||||||
bpy.ops.wm.read_homefile(app_template="")
|
bpy.ops.wm.read_homefile(app_template="", use_factory_startup=True)
|
||||||
if len(bpy.data.objects) > 0:
|
if len(bpy.data.objects) > 0:
|
||||||
bpy.data.batch_remove(bpy.data.objects)
|
bpy.data.batch_remove(bpy.data.objects)
|
||||||
bpy.ops.outliner.orphans_purge(do_local_ids=True, do_linked_ids=True, do_recursive=True)
|
bpy.ops.outliner.orphans_purge(do_local_ids=True, do_linked_ids=True, do_recursive=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user