[Bf-blender-cvs] [11bb89a] master: Cleanup the Grease Pencil panel of the 3D View Toolbar.

Jonathan Williamson noreply at git.blender.org
Fri Jan 3 22:28:57 CET 2014


Commit: 11bb89a6320b1c9b590b82f74d1c351f9995064b
Author: Jonathan Williamson
Date:   Thu Jan 2 21:44:41 2014 -0600
https://developer.blender.org/rB11bb89a6320b1c9b590b82f74d1c351f9995064b

Cleanup the Grease Pencil panel of the 3D View Toolbar.

This makes the panel slightly cleaner, giving more separation between the distinct elements. It also adds a new "Measure" label, so that the Ruler/Protractor is not so closely "related" to the Grease Pencil.

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

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

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

diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index bba4ad1..2cfa43e 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -57,14 +57,18 @@ def draw_gpencil_tools(context, layout):
     row = col.row(align=True)
     row.operator("gpencil.draw", text="Draw").mode = 'DRAW'
     row.operator("gpencil.draw", text="Line").mode = 'DRAW_STRAIGHT'
-
+    row.separator()
     row = col.row(align=True)
     row.operator("gpencil.draw", text="Poly").mode = 'DRAW_POLY'
     row.operator("gpencil.draw", text="Erase").mode = 'ERASER'
 
-    row = col.row(align=True)
-    row.prop(context.tool_settings, "use_grease_pencil_sessions")
+    col.separator()
+    
+    col.prop(context.tool_settings, "use_grease_pencil_sessions")
 
+    col.separator()
+    
+    col.label(text="Measure:")
     col.operator("view3d.ruler")
 
 # ********** default tools for object-mode ****************




More information about the Bf-blender-cvs mailing list