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:
falken10vdl
2026-01-21 23:26:18 +01:00
committed by Dion Moult
parent 0cc3ce8709
commit f89cf88bc0
+1 -1
View File
@@ -337,7 +337,7 @@ def an_untestable_scenario():
def an_empty_blender_session():
IfcStore.purge()
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:
bpy.data.batch_remove(bpy.data.objects)
bpy.ops.outliner.orphans_purge(do_local_ids=True, do_linked_ids=True, do_recursive=True)