[Bf-blender-cvs] [8e1bc5a4d2e] greasepencil-object: Cleanup: Move edit and current pass out of loop

Antonio Vazquez noreply at git.blender.org
Thu Jun 22 13:16:58 CEST 2017


Commit: 8e1bc5a4d2e23f65021f0251f802025ab00b6515
Author: Antonio Vazquez
Date:   Thu Jun 22 13:16:39 2017 +0200
Branches: greasepencil-object
https://developer.blender.org/rB8e1bc5a4d2e23f65021f0251f802025ab00b6515

Cleanup: Move edit and current pass out of loop

These passes don't need to be repited.

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

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 8972d3e91d6..1054943ecde 100644
--- a/source/blender/draw/engines/gpencil/gpencil_engine.c
+++ b/source/blender/draw/engines/gpencil/gpencil_engine.c
@@ -215,13 +215,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);
 		DRW_framebuffer_texture_detach(e_data.temp_fbcolor_color_tx);




More information about the Bf-blender-cvs mailing list