[Bf-blender-cvs] [9e04082c12b] blender-v3.2-release: Fix T98756: GPencil Set Vertex Color Attribute does not color unpainted

Antonio Vazquez noreply at git.blender.org
Wed Jun 22 13:02:58 CEST 2022


Commit: 9e04082c12b2e67b2f40afbac32754576858a889
Author: Antonio Vazquez
Date:   Fri Jun 10 15:25:56 2022 +0200
Branches: blender-v3.2-release
https://developer.blender.org/rB9e04082c12b2e67b2f40afbac32754576858a889

Fix T98756: GPencil Set Vertex Color Attribute does not color unpainted

The operator set the color but the factor of the mix value was not updated and as the default value was 0, the color was not vivible and only worked when the stroke was previously painted.

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

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

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

diff --git a/source/blender/editors/gpencil/gpencil_vertex_ops.c b/source/blender/editors/gpencil/gpencil_vertex_ops.c
index c0888968a2d..865c4e360b5 100644
--- a/source/blender/editors/gpencil/gpencil_vertex_ops.c
+++ b/source/blender/editors/gpencil/gpencil_vertex_ops.c
@@ -587,7 +587,7 @@ static int gpencil_vertexpaint_set_exec(bContext *C, wmOperator *op)
               srgb_to_linearrgb_v4(color, color);
               for (i = 0, pt = gps->points; i < gps->totpoints; i++, pt++) {
                 if ((!any_selected) || (pt->flag & GP_SPOINT_SELECT)) {
-                  copy_v3_v3(pt->vert_color, color);
+                  copy_v4_v4(pt->vert_color, color);
                 }
               }
             }



More information about the Bf-blender-cvs mailing list