From 297639e80f6debb4135af74e7cc96f3cec26e723 Mon Sep 17 00:00:00 2001 From: Swann Date: Tue, 6 Jul 2021 15:39:19 +0200 Subject: [PATCH] fix: crash on changing workspace change --- multi_user/timers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/multi_user/timers.py b/multi_user/timers.py index 62d8a6d..6d8ca81 100644 --- a/multi_user/timers.py +++ b/multi_user/timers.py @@ -41,7 +41,8 @@ this.registry = dict() def is_annotating(context: bpy.types.Context): """ Check if the annotate mode is enabled """ - return bpy.context.workspace.tools.from_space_view3d_mode('OBJECT', create=False).idname == 'builtin.annotate' + active_tool = bpy.context.workspace.tools.from_space_view3d_mode('OBJECT', create=False) + return (active_tool and active_tool.idname == 'builtin.annotate') class Timer(object):