[Bf-blender-cvs] [ad97ba33670] blender2.8: Object Mode: Draw non meshes before outline.

Clément Foucault noreply at git.blender.org
Wed May 2 20:54:21 CEST 2018


Commit: ad97ba33670e832627c2abd9a1d64794b1733299
Author: Clément Foucault
Date:   Sun Apr 22 22:56:07 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBad97ba33670e832627c2abd9a1d64794b1733299

Object Mode: Draw non meshes before outline.

This makes the outlines occluded by the other objects. This was a problem
before the outline refactor but now there is no need for it.

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

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 babe93b5506..0bdeae9d434 100644
--- a/source/blender/draw/modes/object_mode.c
+++ b/source/blender/draw/modes/object_mode.c
@@ -2207,6 +2207,19 @@ static void OBJECT_draw_scene(void *vedata)
 
 	float clearcol[4] = {0.0f, 0.0f, 0.0f, 0.0f};
 
+	MULTISAMPLE_SYNC_ENABLE(dfbl)
+
+	/* This needs to be drawn after the oultine */
+//	DRW_draw_pass(psl->bone_envelope);  /* Never drawn in Object mode currently. */
+	DRW_draw_pass(psl->bone_solid);
+	DRW_draw_pass(psl->bone_wire);
+	DRW_draw_pass(psl->bone_outline);
+	DRW_draw_pass(psl->non_meshes);
+	DRW_draw_pass(psl->particle);
+	DRW_draw_pass(psl->reference_image);
+
+	MULTISAMPLE_SYNC_DISABLE(dfbl)
+
 	if (DRW_state_is_fbo() && outline_calls > 0) {
 		DRW_stats_group_start("Outlines");
 
@@ -2249,18 +2262,6 @@ static void OBJECT_draw_scene(void *vedata)
 		DRW_draw_pass(psl->lightprobes);
 	}
 
-	MULTISAMPLE_SYNC_ENABLE(dfbl)
-
-	/* This needs to be drawn after the oultine */
-//	DRW_draw_pass(psl->bone_envelope);  /* Never drawn in Object mode currently. */
-	DRW_draw_pass(psl->bone_wire);
-	DRW_draw_pass(psl->bone_solid);
-	DRW_draw_pass(psl->non_meshes);
-	DRW_draw_pass(psl->particle);
-	DRW_draw_pass(psl->reference_image);
-
-	MULTISAMPLE_SYNC_DISABLE(dfbl)
-
 	DRW_draw_pass(psl->ob_center);
 
 	if (DRW_state_is_fbo()) {



More information about the Bf-blender-cvs mailing list