[Bf-blender-cvs] [49af17beb8d] blender2.8: Fix T55796: Motion Paths are not being drawn as overlay

Joshua Leung noreply at git.blender.org
Fri Jul 6 16:58:18 CEST 2018


Commit: 49af17beb8d2aca856ff8e23bac99841d1b45f5b
Author: Joshua Leung
Date:   Sat Jul 7 02:52:11 2018 +1200
Branches: blender2.8
https://developer.blender.org/rB49af17beb8d2aca856ff8e23bac99841d1b45f5b

Fix T55796: Motion Paths are not being drawn as overlay

Remove depth testing flags from motion path pass drawing,
so that they always appear to draw in "x-ray" style on top
of everything, making it easier for animators to see what
they're doing.

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

M	source/blender/draw/intern/draw_anim_viz.c

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

diff --git a/source/blender/draw/intern/draw_anim_viz.c b/source/blender/draw/intern/draw_anim_viz.c
index 42c36ab3662..d19bd54ff5f 100644
--- a/source/blender/draw/intern/draw_anim_viz.c
+++ b/source/blender/draw/intern/draw_anim_viz.c
@@ -149,12 +149,12 @@ static void MPATH_cache_init(void *vedata)
 	MPATH_PassList *psl = ((MPATH_Data *)vedata)->psl;
 
 	{
-		DRWState state = DRW_STATE_WRITE_COLOR | DRW_STATE_WRITE_DEPTH | DRW_STATE_DEPTH_LESS;
+		DRWState state = DRW_STATE_WRITE_COLOR;
 		psl->lines = DRW_pass_create("Motionpath Line Pass", state);
 	}
 
 	{
-		DRWState state = DRW_STATE_WRITE_COLOR | DRW_STATE_WRITE_DEPTH | DRW_STATE_DEPTH_LESS | DRW_STATE_POINT;
+		DRWState state = DRW_STATE_WRITE_COLOR | DRW_STATE_POINT;
 		psl->points = DRW_pass_create("Motionpath Point Pass", state);
 	}
 }



More information about the Bf-blender-cvs mailing list