Commit: 2381e70541a3c60addc9415c5aee8ae5973841a1
Author: Antonio Vazquez
Date:   Wed Jul 5 16:20:00 2017 +0200
Branches: greasepencil-object
https://developer.blender.org/rB2381e70541a3c60addc9415c5aee8ae5973841a1

UI: Hide draw buttons

Remove these buttons from panel to keep  UI consistency

===================================================================

M       release/scripts/startup/bl_ui/properties_grease_pencil_common.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py 
b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
index ac6cd63a182..25601886a32 100644
--- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
+++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
@@ -91,23 +91,22 @@ class GreasePencilDrawingToolsPanel:
 
         col = layout.column(align=True)
 
-        col.label(text="Draw:")
-        row = col.row(align=True)
-        row.operator("gpencil.draw", icon='GREASEPENCIL', text="Draw").mode = 
'DRAW'
-        row.operator("gpencil.draw", icon='FORCE_CURVE', text="Erase").mode = 
'ERASER'  # XXX: Needs a dedicated icon
+        if not is_3d_view:
+            col.label(text="Draw:")
+            row = col.row(align=True)
+            row.operator("gpencil.draw", icon='GREASEPENCIL', 
text="Draw").mode = 'DRAW'
+            row.operator("gpencil.draw", icon='FORCE_CURVE', 
text="Erase").mode = 'ERASER'
 
-        row = col.row(align=True)
-        row.operator("gpencil.draw", icon='LINE_DATA', text="Line").mode = 
'DRAW_STRAIGHT'
-        row.operator("gpencil.draw", icon='MESH_DATA', text="Poly").mode = 
'DRAW_POLY'
+            row = col.row(align=True)
+            row.operator("gpencil.draw", icon='LINE_DATA', text="Line").mode = 
'DRAW_STRAIGHT'
+            row.operator("gpencil.draw", icon='MESH_DATA', text="Poly").mode = 
'DRAW_POLY'
 
-        col.separator()
+            col.separator()
 
-        sub = col.column(align=True)
-        if not is_3d_view:
+            sub = col.column(align=True)
             sub.prop(context.tool_settings, "use_gpencil_continuous_drawing", 
text="Continuous Drawing")
 
-        col.separator()
-        col.separator()
+            col.separator()
 
         if context.space_data.type in {'CLIP_EDITOR'}:
             col.separator()

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to