diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-05-20 03:49:42 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-05-20 03:50:54 +0300 |
commit | d58631afc8709f5edd498838ae53a6f8aae08f0d (patch) | |
tree | 4c600b254053dfe7f36525bffe6d866a1a1b9266 | |
parent | b4dfae3df7b9289e2b93ee6b30b1c31770551061 (diff) |
Fix error showing active tool side-bar in the image editor
-rw-r--r-- | release/scripts/startup/bl_ui/space_toolsystem_common.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_toolsystem_common.py b/release/scripts/startup/bl_ui/space_toolsystem_common.py index 4e7b5ea22d8..c0bb50b6597 100644 --- a/release/scripts/startup/bl_ui/space_toolsystem_common.py +++ b/release/scripts/startup/bl_ui/space_toolsystem_common.py @@ -567,11 +567,13 @@ class ToolSelectPanelHelper: if space_type is None: space_data = context.space_data space_type = space_data.type + else: + space_data = None if space_type == 'VIEW_3D': return space_type, context.mode elif space_type == 'IMAGE_EDITOR': - if space_type is None: + if space_data is None: space_data = context.space_data return space_type, space_data.mode elif space_type == 'NODE_EDITOR': |