[Bf-blender-cvs] [5da5acee38f] greasepencil-refactor: GPencil: Recalc UV along the stroke while drawing
Antonio Vazquez
noreply at git.blender.org
Thu Jan 23 11:25:19 CET 2020
Commit: 5da5acee38fcbc85c3e801280c08367af7d929d1
Author: Antonio Vazquez
Date: Thu Jan 23 11:24:15 2020 +0100
Branches: greasepencil-refactor
https://developer.blender.org/rB5da5acee38fcbc85c3e801280c08367af7d929d1
GPencil: Recalc UV along the stroke while drawing
The data was not calculated for the buffer stroke and the texture was not right.
===================================================================
M source/blender/draw/intern/draw_cache_impl_gpencil.c
===================================================================
diff --git a/source/blender/draw/intern/draw_cache_impl_gpencil.c b/source/blender/draw/intern/draw_cache_impl_gpencil.c
index 0cf03d9951c..49ab8b020e3 100644
--- a/source/blender/draw/intern/draw_cache_impl_gpencil.c
+++ b/source/blender/draw/intern/draw_cache_impl_gpencil.c
@@ -538,6 +538,8 @@ static void gpencil_sbuffer_stroke_ensure(bGPdata *gpd, bool do_stroke, bool do_
bGPDspoint *pt = &gps->points[i];
copy_v4_v4(pt->vert_color, gpd->runtime.vert_color);
}
+ /* Calc uv data along the stroke. */
+ BKE_gpencil_stroke_uv_update(gps);
/* Create VBO. */
GPUVertFormat *format = gpencil_stroke_format();
More information about the Bf-blender-cvs
mailing list