GP: Fix render glitch when have collision with mesh

This commit is contained in:
Antonio Vazquez 2019-01-10 16:25:34 +01:00
parent 0f1775205e
commit e31a5a4c62
1 changed files with 6 additions and 1 deletions

View File

@ -338,7 +338,12 @@ void GPENCIL_render_to_image(void *vedata, RenderEngine *engine, struct RenderLa
}
else {
/* blend gp render */
blend_pixel(tmp, gp_pixel_rgba);
if (tmp[3] < 1.0f) {
blend_pixel(tmp, gp_pixel_rgba);
}
else {
copy_v4_v4(gp_pixel_rgba, tmp);
}
}
}
}