[Bf-blender-cvs] [e05ecbe5191] greasepencil-object: GPencil: Use Brush color for Tint tool cursor

Antonio Vazquez noreply at git.blender.org
Thu Nov 7 19:26:35 CET 2019


Commit: e05ecbe51911a71ddc6652efb4160e8dabeae3f6
Author: Antonio Vazquez
Date:   Thu Nov 7 19:25:47 2019 +0100
Branches: greasepencil-object
https://developer.blender.org/rBe05ecbe51911a71ddc6652efb4160e8dabeae3f6

GPencil: Use Brush color for Tint tool cursor

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

M	source/blender/editors/gpencil/gpencil_utils.c

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

diff --git a/source/blender/editors/gpencil/gpencil_utils.c b/source/blender/editors/gpencil/gpencil_utils.c
index 1d6967d1337..2f824a65546 100644
--- a/source/blender/editors/gpencil/gpencil_utils.c
+++ b/source/blender/editors/gpencil/gpencil_utils.c
@@ -1731,11 +1731,12 @@ static void gp_brush_cursor_draw(bContext *C, int x, int y, void *customdata)
         /* Only Tint tool must show big cursor. */
         if (brush->gpencil_tool == GPAINT_TOOL_TINT) {
           radius = brush->size;
+          copy_v3_v3(color, brush->rgb);
         }
         else {
           radius = 5.0f;
+          copy_v3_v3(color, brush->add_col);
         }
-        copy_v3_v3(color, brush->add_col);
       }
     }
   }



More information about the Bf-blender-cvs mailing list