diff options
author | Joshua Leung <aligorith@gmail.com> | 2018-07-06 17:52:11 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2018-07-06 17:53:34 +0300 |
commit | 49af17beb8d2aca856ff8e23bac99841d1b45f5b (patch) | |
tree | 073146c18c269076dfee67d23db034007880030a /source/blender | |
parent | 4e4e88f02b521752dea7783037c4d02e5d63f1a9 (diff) |
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.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/draw/intern/draw_anim_viz.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } } |