diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-08-01 09:04:21 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-08-01 09:04:21 +0300 |
commit | d6d29f9854298c2a8dda9bf0ed339fdfbd7f0337 (patch) | |
tree | 3d35b14b9801e00f33d39da837350e1affac39cb | |
parent | 5f55bbf3d07db4f1b89921cbe742873fd5645e11 (diff) |
UI: add 3D view check for grease pencil tool
-rw-r--r-- | release/scripts/startup/bl_ui/space_toolsystem_toolbar.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py index 98530aea2d2..8ce4a52fbbc 100644 --- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py +++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py @@ -188,10 +188,8 @@ class _defs_annotate: def draw_settings_common(cls, context, layout, tool): ts = context.tool_settings - # For 3D view, show the stroke placement settings - # XXX: How to tell what editor the active tool comes from? - is_3d_view = True - if is_3d_view: + space_type = tool.space_type + if space_type == 'VIEW_3D': layout.separator() row = layout.row(align=True) |