diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-03-27 15:01:25 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-03-27 15:01:47 +0300 |
commit | b33693cb44e8a1bde1933d2a516b3ed54c8021ea (patch) | |
tree | 7d62eb5b5a2a19ce1690984887b0989bd41f8a53 /source/blender/draw/modes/shaders/object_grid_vert.glsl | |
parent | deda6a43fc710f30ceb9e3b30d1f8d79180fe8d1 (diff) |
New Grid: small modification
Fix wrong coord picked when display only one axis.
Small optimizations here and there.
Diffstat (limited to 'source/blender/draw/modes/shaders/object_grid_vert.glsl')
-rw-r--r-- | source/blender/draw/modes/shaders/object_grid_vert.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/modes/shaders/object_grid_vert.glsl b/source/blender/draw/modes/shaders/object_grid_vert.glsl index 5127bd81474..2da8e45c560 100644 --- a/source/blender/draw/modes/shaders/object_grid_vert.glsl +++ b/source/blender/draw/modes/shaders/object_grid_vert.glsl @@ -57,7 +57,7 @@ void main() if ((gridFlag & CLIP_Z_POS) > 0) { realPos.z = max(realPos.z, 0.0); } - else if ((gridFlag & CLIP_Z_NEG) > 0) { + if ((gridFlag & CLIP_Z_NEG) > 0) { realPos.z = min(realPos.z, 0.0); } |