[Bf-blender-cvs] [d6d29f98542] blender2.8: UI: add 3D view check for grease pencil tool
Campbell Barton
noreply at git.blender.org
Wed Aug 1 08:05:33 CEST 2018
Commit: d6d29f9854298c2a8dda9bf0ed339fdfbd7f0337
Author: Campbell Barton
Date: Wed Aug 1 16:04:21 2018 +1000
Branches: blender2.8
https://developer.blender.org/rBd6d29f9854298c2a8dda9bf0ed339fdfbd7f0337
UI: add 3D view check for grease pencil tool
===================================================================
M release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
===================================================================
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)
More information about the Bf-blender-cvs
mailing list