[Bf-blender-cvs] [e6a0b442c74] greasepencil-object: Enable antialiasing while drawing

Antonio Vazquez noreply at git.blender.org
Tue Nov 14 16:04:51 CET 2017


Commit: e6a0b442c7441c33e4f6204fa63d96dec32567da
Author: Antonio Vazquez
Date:   Tue Nov 14 16:04:41 2017 +0100
Branches: greasepencil-object
https://developer.blender.org/rBe6a0b442c7441c33e4f6204fa63d96dec32567da

Enable antialiasing while drawing

The antialiasing was not activated for previous strokes, only for current.

===================================================================

M	source/blender/draw/engines/gpencil/gpencil_engine.c

===================================================================

diff --git a/source/blender/draw/engines/gpencil/gpencil_engine.c b/source/blender/draw/engines/gpencil/gpencil_engine.c
index 2c8e7795e6f..346acae39f5 100644
--- a/source/blender/draw/engines/gpencil/gpencil_engine.c
+++ b/source/blender/draw/engines/gpencil/gpencil_engine.c
@@ -620,7 +620,12 @@ static void GPENCIL_draw_scene(void *vedata)
 	/* if we have a painting session, we use fast viewport drawing method */
 	if (stl->g_data->session_flag & GP_DRW_PAINT_PAINTING) {
 		DRW_framebuffer_bind(dfbl->default_fb);
+
+		MULTISAMPLE_SYNC_ENABLE(dfbl);
+		
 		DRW_draw_pass(psl->painting_pass);
+		
+		MULTISAMPLE_SYNC_DISABLE(dfbl);
 
 		/* Current stroke must pass through the temp framebuffer to get same alpha values in blend */
 		DRW_framebuffer_texture_attach(fbl->temp_color_fb, e_data.temp_fbcolor_depth_tx, 0, 0);



More information about the Bf-blender-cvs mailing list