mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Fixes #2175: Fixes a crash when blender is in background mode or is used as bpy Python module
This commit is contained in:
committed by
Dion Moult
parent
d4b2cc7f2c
commit
3f6d25ed43
@@ -131,7 +131,8 @@ for mod in modules.values():
|
||||
|
||||
def on_register(scene):
|
||||
handler.setDefaultProperties(scene)
|
||||
bpy.app.handlers.depsgraph_update_post.remove(on_register)
|
||||
if not bpy.app.background:
|
||||
bpy.app.handlers.depsgraph_update_post.remove(on_register)
|
||||
|
||||
|
||||
def register():
|
||||
|
||||
Reference in New Issue
Block a user