diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2021-01-20 18:53:42 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2021-01-20 18:53:42 +0300 |
commit | 0d599ce95a8e81c8fe4f2461f49068639e4beb2f (patch) | |
tree | 5a60a03a225a8488b74d9f6ac65ecd4fa35a900b /source | |
parent | 1f691050e5eb1b59676d6540e712357086d2218c (diff) |
GPencil: Fix unreported NaN value for UV Rotation in Primitives
Using primitive drawings, the point UV rotation was not initialized.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_primitive.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/gpencil_primitive.c b/source/blender/editors/gpencil/gpencil_primitive.c index b457cd819d2..33497429331 100644 --- a/source/blender/editors/gpencil/gpencil_primitive.c +++ b/source/blender/editors/gpencil/gpencil_primitive.c @@ -1018,7 +1018,7 @@ static void gpencil_primitive_update_strokes(bContext *C, tGPDprimitive *tgpi) tpt->uv_fac = 0.0f; } - tpt->uv_rot = p2d->uv_rot; + tpt->uv_rot = 0.0f; gpd->runtime.sbuffer_used++; @@ -1040,6 +1040,7 @@ static void gpencil_primitive_update_strokes(bContext *C, tGPDprimitive *tgpi) pt->time = 0.0f; pt->flag = 0; pt->uv_fac = tpt->uv_fac; + pt->uv_rot = 0.0f; ED_gpencil_point_vertex_color_set(ts, brush, pt, tpt); if (gps->dvert != NULL) { |