GPencil: Copy temp color in multiframe

As the evaluated data is not calculated in multiframe, needs to have the original colors.

Related to T70116
This commit is contained in:
2019-09-20 15:43:56 +02:00
parent bf4fa5792d
commit db7b3de918

View File

@@ -1180,6 +1180,12 @@ static void gpencil_draw_strokes(GpencilBatchCache *cache,
continue;
}
/* Copy color to temp fields. */
if ((is_multiedit) && (gp_style)) {
copy_v4_v4(gps->runtime.tmp_stroke_rgba, gp_style->stroke_rgba);
copy_v4_v4(gps->runtime.tmp_fill_rgba, gp_style->fill_rgba);
}
/* be sure recalc all cache in source stroke to avoid recalculation when frame change
* and improve fps */
gpencil_recalc_geometry_caches(