diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-05-13 19:39:15 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-05-13 19:39:15 +0300 |
commit | 3767c0126953d252d3ce2e8dad3b695f94499aed (patch) | |
tree | f795d5e8b0c2143c107369a6fc9f16acb679a8e8 /release | |
parent | d21043ba83ce99e36181fa61a58d0d273416be97 (diff) |
Fix issue w/ recent tool name use
Use the context space type, not the workspace.
Broke setting tools for the first time.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_toolsystem_common.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_toolsystem_common.py b/release/scripts/startup/bl_ui/space_toolsystem_common.py index 84c9b57f590..ed683bcc312 100644 --- a/release/scripts/startup/bl_ui/space_toolsystem_common.py +++ b/release/scripts/startup/bl_ui/space_toolsystem_common.py @@ -257,8 +257,7 @@ class ToolSelectPanelHelper: """ Return the active Python tool definition and index (if in sub-group, else -1). """ - workspace = context.workspace - cls = ToolSelectPanelHelper._tool_class_from_space_type(workspace.tool_space_type) + cls = ToolSelectPanelHelper._tool_class_from_space_type(context.space_data.type) if cls is not None: context_mode = context.mode for item, index in ToolSelectPanelHelper._tools_flatten_with_tool_index(cls.tools_from_context(context)): |