Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mesh_snap_utilities_line/widgets.py')
-rw-r--r--mesh_snap_utilities_line/widgets.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesh_snap_utilities_line/widgets.py b/mesh_snap_utilities_line/widgets.py
index 3060d74e..235657b1 100644
--- a/mesh_snap_utilities_line/widgets.py
+++ b/mesh_snap_utilities_line/widgets.py
@@ -145,9 +145,9 @@ class SnapPointWidget(SnapWidgetCommon):
def context_mode_check(context, widget_group):
- workspace = context.workspace
- mode = workspace.tools_mode
- for tool in workspace.tools:
+ tools = context.workspace.tools
+ mode = context.mode
+ for tool in tools:
if (tool.widget == widget_group) and (tool.mode == mode):
break
else: