[Bf-blender-cvs] [a841490a2b5] greasepencil-object: Move again some passes inside loop

Antonio Vazquez noreply at git.blender.org
Sat Jun 24 12:10:23 CEST 2017


Commit: a841490a2b578f0e0519228116fba0e459acdab5
Author: Antonio Vazquez
Date:   Sat Jun 24 12:02:44 2017 +0200
Branches: greasepencil-object
https://developer.blender.org/rBa841490a2b578f0e0519228116fba0e459acdab5

Move again some passes inside loop

This will be necessary when the clear shgroups is on the loop

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

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 1a2d3895cfa..eae5d54085b 100644
--- a/source/blender/draw/engines/gpencil/gpencil_engine.c
+++ b/source/blender/draw/engines/gpencil/gpencil_engine.c
@@ -222,11 +222,12 @@ static void GPENCIL_draw_scene(void *vedata)
 			
 			/* Mix Pass: DRW_STATE_WRITE_COLOR | DRW_STATE_BLEND | DRW_STATE_WRITE_DEPTH | DRW_STATE_DEPTH_LESS */
 			DRW_draw_pass(psl->mix_pass);
+
+			/* edit points */
+			DRW_draw_pass(psl->edit_pass);
+			/* current drawing buffer */
+			DRW_draw_pass(psl->drawing_pass);
 		}
-		/* edit points */
-		DRW_draw_pass(psl->edit_pass);
-		/* current drawing buffer */
-		DRW_draw_pass(psl->drawing_pass);
 
 		/* detach temp textures */
 		DRW_framebuffer_texture_detach(e_data.temp_fbcolor_depth_tx);




More information about the Bf-blender-cvs mailing list