Fix errors trying to setup decorations running tests

This commit is contained in:
Andrej730
2024-08-28 16:18:17 +05:00
parent 84a2d4266d
commit 174ff00a6d
@@ -259,8 +259,12 @@ def update_should_draw_decorations(self, context):
continue
tool.Drawing.update_text_value(obj)
refresh_drawing_data()
if bpy.app.background:
return
decoration.DecorationsHandler.install(context)
else:
if bpy.app.background:
return
decoration.DecorationsHandler.uninstall()