GPencil: Fix unreported NaN value for UV Rotation in Primitives

Using primitive drawings, the point UV rotation was not initialized.
This commit is contained in:
Antonio Vazquez 2021-01-20 16:53:42 +01:00
parent 1f691050e5
commit 0d599ce95a
1 changed files with 2 additions and 1 deletions

View File

@ -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) {