[Bf-blender-cvs] [ea879f340af] greasepencil-refactor: GPencil: Change order of the UI parameters for materials

Antonio Vazquez noreply at git.blender.org
Wed Dec 11 18:44:48 CET 2019


Commit: ea879f340af95deb39ae28e48226aebecd910026
Author: Antonio Vazquez
Date:   Wed Dec 11 17:48:37 2019 +0100
Branches: greasepencil-refactor
https://developer.blender.org/rBea879f340af95deb39ae28e48226aebecd910026

GPencil: Change order of the UI parameters for materials

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

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

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

diff --git a/release/scripts/startup/bl_ui/properties_material_gpencil.py b/release/scripts/startup/bl_ui/properties_material_gpencil.py
index 4e014441fb8..aa7e93622b6 100644
--- a/release/scripts/startup/bl_ui/properties_material_gpencil.py
+++ b/release/scripts/startup/bl_ui/properties_material_gpencil.py
@@ -158,7 +158,7 @@ class MATERIAL_PT_gpencil_strokecolor(GPMaterialButtonsPanel, Panel):
                 if gpcolor.use_stroke_pattern is False:
                     col.prop(gpcolor, "use_stroke_texture_mix", text="Mix Color")
                     if gpcolor.use_stroke_texture_mix is True:
-                        col.prop(gpcolor, "mix_stroke_factor", text="Factor")
+                        col.prop(gpcolor, "mix_stroke_factor", text="Factor", slider=True)
 
             if (gpcolor.stroke_style == 'SOLID' or gpcolor.use_stroke_pattern or gpcolor.use_stroke_texture_mix):
                 col.prop(gpcolor, "color", text="Base Color")
@@ -222,8 +222,6 @@ class MATERIAL_PT_gpencil_fillcolor(GPMaterialButtonsPanel, Panel):
 
             if gpcolor.fill_style == 'TEXTURE':
                 col.prop(gpcolor, "use_fill_pattern", text="Use as Stencil Mask")
-                if gpcolor.use_fill_pattern is True:
-                    col.prop(gpcolor, "fill_color", text="Base Color")
 
             col.prop(gpcolor, "texture_offset", text="Offset")
             col.prop(gpcolor, "texture_scale", text="Scale")
@@ -232,11 +230,14 @@ class MATERIAL_PT_gpencil_fillcolor(GPMaterialButtonsPanel, Panel):
             col.prop(gpcolor, "texture_clamp", text="Clip Image")
 
             if gpcolor.use_fill_pattern is False:
-                col.prop(gpcolor, "use_fill_texture_mix", text="Mix with Color")
+                col.prop(gpcolor, "use_fill_texture_mix", text="Mix Color")
 
                 if gpcolor.use_fill_texture_mix is True:
-                    col.prop(gpcolor, "fill_color", text="Mix Color")
-                    col.prop(gpcolor, "mix_factor", text="Mix Factor", slider=True)
+                    col.prop(gpcolor, "mix_factor", text="Factor", slider=True)
+                    col.prop(gpcolor, "fill_color", text="Base Color")
+
+            if gpcolor.fill_style == 'TEXTURE' and gpcolor.use_fill_pattern is True:
+                col.prop(gpcolor, "fill_color", text="Base Color")
 
 
 class MATERIAL_PT_gpencil_preview(GPMaterialButtonsPanel, Panel):



More information about the Bf-blender-cvs mailing list