[Bf-blender-cvs] [a7acd4690c2] master: GP: Rename Colorize "Bi-Tone" to "Dualtone"

Antonioya noreply at git.blender.org
Mon Feb 25 17:46:23 CET 2019


Commit: a7acd4690c20a2363e665b29cd41dbf520454e2e
Author: Antonioya
Date:   Mon Feb 25 17:45:52 2019 +0100
Branches: master
https://developer.blender.org/rBa7acd4690c20a2363e665b29cd41dbf520454e2e

GP: Rename Colorize "Bi-Tone" to "Dualtone"

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

M	source/blender/draw/engines/gpencil/shaders/fx/gpencil_fx_colorize_frag.glsl
M	source/blender/makesdna/DNA_shader_fx_types.h
M	source/blender/makesrna/intern/rna_shader_fx.c

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

diff --git a/source/blender/draw/engines/gpencil/shaders/fx/gpencil_fx_colorize_frag.glsl b/source/blender/draw/engines/gpencil/shaders/fx/gpencil_fx_colorize_frag.glsl
index 33b249ac09b..e7b38d092af 100644
--- a/source/blender/draw/engines/gpencil/shaders/fx/gpencil_fx_colorize_frag.glsl
+++ b/source/blender/draw/engines/gpencil/shaders/fx/gpencil_fx_colorize_frag.glsl
@@ -10,7 +10,7 @@ out vec4 FragColor;
 
 #define MODE_GRAYSCALE   0
 #define MODE_SEPIA       1
-#define MODE_BITONE      2
+#define MODE_DUALTONE    2
 #define MODE_CUSTOM      3
 #define MODE_TRANSPARENT 4
 
@@ -48,7 +48,7 @@ void main()
 			outcolor = vec4(Red, Green, Blue, src_pixel.a);
 			break;
 			}
-		case MODE_BITONE:
+		case MODE_DUALTONE:
 			{
 			if (luminance <= factor) {
 				outcolor = low_color;
diff --git a/source/blender/makesdna/DNA_shader_fx_types.h b/source/blender/makesdna/DNA_shader_fx_types.h
index d65e0bd6126..96b114dd365 100644
--- a/source/blender/makesdna/DNA_shader_fx_types.h
+++ b/source/blender/makesdna/DNA_shader_fx_types.h
@@ -115,7 +115,7 @@ typedef struct ColorizeShaderFxData {
 typedef enum ColorizeShaderFxModes {
 	eShaderFxColorizeMode_GrayScale = 0,
 	eShaderFxColorizeMode_Sepia = 1,
-	eShaderFxColorizeMode_BiTone = 2,
+	eShaderFxColorizeMode_DualTone = 2,
 	eShaderFxColorizeMode_Custom = 3,
 	eShaderFxColorizeMode_Transparent = 4,
 } ColorizeShaderFxModes;
diff --git a/source/blender/makesrna/intern/rna_shader_fx.c b/source/blender/makesrna/intern/rna_shader_fx.c
index 8b479e9f05a..2f0a4a4be7d 100644
--- a/source/blender/makesrna/intern/rna_shader_fx.c
+++ b/source/blender/makesrna/intern/rna_shader_fx.c
@@ -77,7 +77,7 @@ static const EnumPropertyItem rna_enum_shaderfx_glow_modes_items[] = {
 static const EnumPropertyItem rna_enum_shaderfx_colorize_modes_items[] = {
 	{eShaderFxColorizeMode_GrayScale, "GRAYSCALE", 0, "Gray Scale", "" },
 	{eShaderFxColorizeMode_Sepia, "SEPIA", 0, "Sepia", "" },
-	{eShaderFxColorizeMode_BiTone, "BITONE", 0, "Bi-Tone", "" },
+	{eShaderFxColorizeMode_DualTone, "DUALTONE", 0, "Dualtone", "" },
 	{eShaderFxColorizeMode_Transparent, "TRANSPARENT", 0, "Transparent", "" },
 	{eShaderFxColorizeMode_Custom, "CUSTOM", 0, "Custom", "" },
 	{0, NULL, 0, NULL, NULL }



More information about the Bf-blender-cvs mailing list