GP: Reduce render noise pixel in blend borders
authorAntonioya <blendergit@gmail.com>
Thu, 7 Feb 2019 15:30:42 +0000 (16:30 +0100)
committerAntonioya <blendergit@gmail.com>
Thu, 7 Feb 2019 15:31:03 +0000 (16:31 +0100)
source/blender/draw/engines/gpencil/gpencil_render.c

index 7ccd4e5fab16ccc67648ea3b20b08a4f3485bbb3..bf1255ced5490617d261bde633497315c770260b 100644 (file)
@@ -337,7 +337,7 @@ void GPENCIL_render_to_image(void *vedata, RenderEngine *engine, struct RenderLa
 
                                                        blend_pixel(gp_pixel_rgba, src_pixel_rgba, gp_pixel_rgba);
 
-                                                       gp_pixel_rgba[3] = src_pixel_rgba[3];
+                                                       gp_pixel_rgba[3] = gp_pixel_rgba[3] > src_pixel_rgba[3] ? gp_pixel_rgba[3] : src_pixel_rgba[3];
                                                }
                                        }
                                }