[Bf-blender-cvs] [829533ea41c] greasepencil-object: GPencil: Fix Duotone Colorize error in Panel

Antonio Vazquez noreply at git.blender.org
Fri Feb 14 18:16:34 CET 2020


Commit: 829533ea41c17988de0969770090d810bdf86530
Author: Antonio Vazquez
Date:   Fri Feb 14 18:16:23 2020 +0100
Branches: greasepencil-object
https://developer.blender.org/rB829533ea41c17988de0969770090d810bdf86530

GPencil: Fix Duotone Colorize error in Panel

The props were using old BITONE name mode.

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

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

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

diff --git a/release/scripts/startup/bl_ui/properties_data_shaderfx.py b/release/scripts/startup/bl_ui/properties_data_shaderfx.py
index 3fcc5083b34..c39ea87ab15 100644
--- a/release/scripts/startup/bl_ui/properties_data_shaderfx.py
+++ b/release/scripts/startup/bl_ui/properties_data_shaderfx.py
@@ -69,12 +69,12 @@ class DATA_PT_shader_fx(ShaderFxButtonsPanel, Panel):
     def FX_COLORIZE(self, layout, fx):
         layout.prop(fx, "mode", text="Mode")
 
-        if fx.mode == 'BITONE':
+        if fx.mode == 'DUOTONE':
             layout.prop(fx, "low_color", text="Low Color")
         if fx.mode == 'CUSTOM':
             layout.prop(fx, "low_color", text="Color")
 
-        if fx.mode == 'BITONE':
+        if fx.mode == 'DUOTONE':
             layout.prop(fx, "high_color", text="High Color")
 
         layout.prop(fx, "factor")



More information about the Bf-blender-cvs mailing list