mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-28 07:49:59 +00:00
Fix errors trying to setup decorations running tests
This commit is contained in:
@@ -259,8 +259,12 @@ def update_should_draw_decorations(self, context):
|
|||||||
continue
|
continue
|
||||||
tool.Drawing.update_text_value(obj)
|
tool.Drawing.update_text_value(obj)
|
||||||
refresh_drawing_data()
|
refresh_drawing_data()
|
||||||
|
if bpy.app.background:
|
||||||
|
return
|
||||||
decoration.DecorationsHandler.install(context)
|
decoration.DecorationsHandler.install(context)
|
||||||
else:
|
else:
|
||||||
|
if bpy.app.background:
|
||||||
|
return
|
||||||
decoration.DecorationsHandler.uninstall()
|
decoration.DecorationsHandler.uninstall()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user