Commit: 9a252b5f5089901bd2368222f53912b8a1ef0e2f
Author: Antonio Vazquez
Date:   Fri Nov 1 19:46:01 2019 +0100
Branches: greasepencil-object
https://developer.blender.org/rB9a252b5f5089901bd2368222f53912b8a1ef0e2f

GPencil: Move mix color to top of he panel

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

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

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

diff --git a/release/scripts/startup/bl_ui/properties_paint_common.py 
b/release/scripts/startup/bl_ui/properties_paint_common.py
index 98e812cf02d..c1a3ae0dd32 100644
--- a/release/scripts/startup/bl_ui/properties_paint_common.py
+++ b/release/scripts/startup/bl_ui/properties_paint_common.py
@@ -420,6 +420,13 @@ def brush_basic_gpencil_paint_settings(layout, _context, 
brush, tool, *, compact
         row.prop(gp_settings, "pen_strength", slider=True)
         row.prop(gp_settings, "use_strength_pressure", text="", 
icon='STYLUS_PRESSURE')
 
+        if is_toolbar is False:
+            row = layout.row(align=True)
+            row.prop(gp_settings, "mix_color", text="")
+            row = layout.row(align=True)
+            row.template_color_picker(gp_settings, "mix_color", 
value_slider=True)
+
+
     # FIXME: tools must use their own UI drawing!
     if tool.idname in {
             "builtin.arc",
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py 
b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index 2e7bdd5cc7d..1818950703e 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -2029,32 +2029,6 @@ class 
VIEW3D_PT_tools_grease_pencil_brush_random(View3DPanel, Panel):
         row.prop(gp_settings, "use_jitter_pressure", text="", 
icon='STYLUS_PRESSURE')
 
 
-class VIEW3D_PT_tools_grease_pencil_brush_mixcolor(View3DPanel, Panel):
-    bl_context = ".greasepencil_paint"
-    bl_parent_id = 'VIEW3D_PT_tools_grease_pencil_brush_option'
-    bl_label = "Mix Color"
-    bl_category = "Tool"
-    bl_options = {'DEFAULT_CLOSED'}
-
-    @classmethod
-    def poll(cls, context):
-        brush = context.tool_settings.gpencil_paint.brush
-        return brush is not None and brush.gpencil_tool == 'DRAW'
-
-    def draw(self, context):
-        layout = self.layout
-        layout.use_property_split = True
-        layout.use_property_decorate = False
-
-        settings = context.tool_settings.gpencil_paint
-        brush = settings.brush
-        gp_settings = brush.gpencil_settings
-        row = layout.row(align=True)
-        row.prop(gp_settings, "mix_color", text="")
-        row = layout.row(align=True)
-        row.template_color_picker(gp_settings, "mix_color", value_slider=True)
-
-
 # Grease Pencil drawingcurves
 class VIEW3D_PT_tools_grease_pencil_brushcurves(View3DPanel, Panel):
     bl_context = ".greasepencil_paint"
@@ -2301,7 +2275,6 @@ classes = (
     VIEW3D_PT_gpencil_brush_presets,
     VIEW3D_PT_tools_grease_pencil_brush,
     VIEW3D_PT_tools_grease_pencil_brush_option,
-    VIEW3D_PT_tools_grease_pencil_brush_mixcolor,
     VIEW3D_PT_tools_grease_pencil_brush_settings,
     VIEW3D_PT_tools_grease_pencil_brush_stabilizer,
     VIEW3D_PT_tools_grease_pencil_brush_random,

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

Reply via email to