[Bf-blender-cvs] [424aeda1128] blender2.8: Object Mode: Draw object center after the floorgrid

Clément Foucault noreply at git.blender.org
Fri Sep 14 18:32:16 CEST 2018


Commit: 424aeda11281ca9c02475417375ead4ed00bd142
Author: Clément Foucault
Date:   Fri Sep 14 18:31:54 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB424aeda11281ca9c02475417375ead4ed00bd142

Object Mode: Draw object center after the floorgrid

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

M	source/blender/draw/modes/object_mode.c

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

diff --git a/source/blender/draw/modes/object_mode.c b/source/blender/draw/modes/object_mode.c
index f2d316bbed1..a9e0992016e 100644
--- a/source/blender/draw/modes/object_mode.c
+++ b/source/blender/draw/modes/object_mode.c
@@ -2926,8 +2926,6 @@ static void OBJECT_draw_scene(void *vedata)
 		DRW_draw_pass(psl->lightprobes);
 	}
 
-	DRW_draw_pass(psl->ob_center);
-
 	if (DRW_state_is_fbo()) {
 		if (e_data.draw_grid) {
 			GPU_framebuffer_bind(dfbl->color_only_fb);
@@ -2984,6 +2982,8 @@ static void OBJECT_draw_scene(void *vedata)
 		BLI_ghash_free(stl->g_data->sgl_ghost.image_plane_map, NULL, MEM_freeN);
 		stl->g_data->sgl_ghost.image_plane_map = NULL;
 	}
+
+	DRW_draw_pass(psl->ob_center);
 }
 
 static const DrawEngineDataSize OBJECT_data_size = DRW_VIEWPORT_DATA_SIZE(OBJECT_Data);



More information about the Bf-blender-cvs mailing list