Tool System: use tools for node editor

This commit is contained in:
Campbell Barton
2018-11-27 18:39:29 +11:00
parent 1f8360171c
commit 1944bca49a
8 changed files with 170 additions and 17 deletions

View File

@@ -293,6 +293,12 @@ class ToolSelectPanelHelper:
if tool is not None:
tool.refresh_from_context()
return tool
elif space_type == 'NODE_EDITOR':
space_data = context.space_data
tool = context.workspace.tools.from_space_node(create=create)
if tool is not None:
tool.refresh_from_context()
return tool
return None
@staticmethod