[Bf-blender-cvs] [86dd04d5407] greasepencil-object: UI: More panel adjustments

Antonio Vazquez noreply at git.blender.org
Tue Jun 19 17:06:12 CEST 2018


Commit: 86dd04d540725a182a1a21427e02f8ad2dffbd0d
Author: Antonio Vazquez
Date:   Tue Jun 19 17:06:04 2018 +0200
Branches: greasepencil-object
https://developer.blender.org/rB86dd04d540725a182a1a21427e02f8ad2dffbd0d

UI: More panel adjustments

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

M	release/scripts/startup/bl_ui/properties_grease_pencil_common.py
M	release/scripts/startup/bl_ui/space_view3d_toolbar.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 2db7a40c6d8..87cdbcac62b 100644
--- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
+++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
@@ -288,8 +288,7 @@ class GreasePencilAppearancePanel:
     def draw(self, context):
         layout = self.layout
         layout.use_property_split = True
-
-        workspace = context.workspace
+        layout.use_property_decorate = False
 
         if context.active_object.mode == 'GPENCIL_PAINT':
             brush = context.active_gpencil_brush
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index 8922e367e2b..eb41bff3bf6 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -1412,10 +1412,8 @@ class VIEW3D_PT_tools_grease_pencil_brush(View3DPanel, Panel):
                 col = layout.row(align=True)
                 col.template_ID(gp_settings, "material")
 
-                col = layout.column(align=True)
-                col.label(text="Boundary Draw Mode:")
-                row = col.row(align=True)
-                row.prop(gp_settings, "gpencil_fill_draw_mode", text="")
+                row = layout.row(align=True)
+                row.prop(gp_settings, "gpencil_fill_draw_mode", text="Boundary Draw Mode")
                 row.prop(gp_settings, "gpencil_fill_show_boundary", text="", icon='GRID')
 
                 col = layout.column(align=True)
@@ -1446,6 +1444,7 @@ class VIEW3D_PT_tools_grease_pencil_brush_option(View3DPanel, Panel):
     def draw(self, context):
         layout = self.layout
         layout.use_property_split = True
+        layout.use_property_decorate = False
 
         brush = context.active_gpencil_brush
         gp_settings = brush.gpencil_settings
@@ -1485,6 +1484,7 @@ class VIEW3D_PT_tools_grease_pencil_brush_stabilizer(View3DPanel, Panel):
     def draw(self, context):
         layout = self.layout
         layout.use_property_split = True
+        layout.use_property_decorate = False
 
         brush = context.active_gpencil_brush
         gp_settings = brush.gpencil_settings
@@ -1515,6 +1515,7 @@ class VIEW3D_PT_tools_grease_pencil_brush_settings(View3DPanel, Panel):
     def draw(self, context):
         layout = self.layout
         layout.use_property_split = True
+        layout.use_property_decorate = False
 
         brush = context.active_gpencil_brush
         gp_settings = brush.gpencil_settings
@@ -1551,6 +1552,7 @@ class VIEW3D_PT_tools_grease_pencil_brush_random(View3DPanel, Panel):
     def draw(self, context):
         layout = self.layout
         layout.use_property_split = True
+        layout.use_property_decorate = False
 
         brush = context.active_gpencil_brush
         gp_settings = brush.gpencil_settings
@@ -1699,7 +1701,7 @@ class VIEW3D_PT_tools_grease_pencil_weight_paint(View3DPanel, Panel):
         row = col.row(align=True)
         row.prop(brush, "strength", slider=True)
         row.prop(brush, "use_pressure_strength", text="")
-        
+
         col.prop(brush, "use_falloff")



More information about the Bf-blender-cvs mailing list