[Bf-blender-cvs] [d69c6b6f47d] greasepencil-object: GPencil: Add missing stroke UV initialization.

Antonio Vazquez noreply at git.blender.org
Wed Oct 2 16:09:12 CEST 2019


Commit: d69c6b6f47da3ac7ddef46e55d91b2d7aeb0f51b
Author: Antonio Vazquez
Date:   Wed Oct 2 16:09:02 2019 +0200
Branches: greasepencil-object
https://developer.blender.org/rBd69c6b6f47da3ac7ddef46e55d91b2d7aeb0f51b

GPencil: Add missing stroke UV initialization.

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

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

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

diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c
index ba239deb1d9..7f539b23d6d 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -1217,6 +1217,7 @@ static void gp_stroke_newfrombuffer(tGPsdata *p)
   copy_v2_v2(gps->gradient_s, brush->gpencil_settings->gradient_s);
   gps->flag = gpd->runtime.sbuffer_sflag;
   gps->inittime = p->inittime;
+  gps->uv_scale = 1.0f;
 
   /* enable recalculation flag by default (only used if hq fill) */
   gps->flag |= GP_STROKE_RECALC_GEOMETRY;



More information about the Bf-blender-cvs mailing list