[Bf-blender-cvs] [76245674481] greasepencil-object: GPencil: Fix missing texture in first stroke

Antonio Vazquez noreply at git.blender.org
Mon Feb 24 10:46:06 CET 2020


Commit: 76245674481f0d66861b1d092c3e93ad16f8ba4b
Author: Antonio Vazquez
Date:   Mon Feb 24 10:45:59 2020 +0100
Branches: greasepencil-object
https://developer.blender.org/rB76245674481f0d66861b1d092c3e93ad16f8ba4b

GPencil: Fix missing texture in first stroke

The material id was not updated in eval data.

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

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 5523a5aae16..cd91c454af4 100644
--- a/source/blender/editors/gpencil/gpencil_utils.c
+++ b/source/blender/editors/gpencil/gpencil_utils.c
@@ -2562,6 +2562,7 @@ void ED_gpencil_sbuffer_vertex_color_set(
   if (gpd_eval != NULL) {
     copy_v4_v4(gpd_eval->runtime.vert_color, gpd->runtime.vert_color);
     copy_v4_v4(gpd_eval->runtime.vert_color_fill, gpd->runtime.vert_color_fill);
+    gpd_eval->runtime.matid = gpd->runtime.matid;
   }
 }



More information about the Bf-blender-cvs mailing list