Edit Mesh: Make edit cage stick to the mesh when possible
authorClément Foucault <foucault.clem@gmail.com>
Tue, 11 Dec 2018 17:21:12 +0000 (18:21 +0100)
committerClément Foucault <foucault.clem@gmail.com>
Tue, 11 Dec 2018 17:21:12 +0000 (18:21 +0100)
commit4de5478409ea3b7749de46ff28bedceb79b6b481
tree5ae98aae57530e4e39ba67e3aabca5c353269cf9
parent1b8e1bb6351415912d7106bca6488c6c0dd50cc3
Edit Mesh: Make edit cage stick to the mesh when possible

and correctly offset it when it's not possible, otherwise we get zfighting.
source/blender/draw/modes/edit_mesh_mode.c
source/blender/draw/modes/shaders/edit_mesh_overlay_vert.glsl