Commit: 3fd7dcad9e155f9039187dd0b199d3f3bbd5d78f
Author: Antonio Vazquez
Date:   Tue Mar 13 19:42:46 2018 +0100
Branches: greasepencil-object
https://developer.blender.org/rB3fd7dcad9e155f9039187dd0b199d3f3bbd5d78f

Fix cursor error after erase brush

When the brush is not selected, the cursor must be hidden.

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

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 e8e1a290c2b..f0c8cde4332 100644
--- a/source/blender/editors/gpencil/gpencil_utils.c
+++ b/source/blender/editors/gpencil/gpencil_utils.c
@@ -1425,6 +1425,9 @@ static void gp_brush_drawcursor(bContext *C, int x, int 
y, void *customdata)
                                copy_v3_v3(color, paintbrush->add_col);
                        }
                }
+               else {
+                       return;
+               }
        }
 
        /* for sculpt use sculpt brush size */

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to