diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-02-04 03:13:51 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-02-05 17:02:15 +0300 |
commit | 86193d25dbe5470a465dd91655c6aeaabab19b21 (patch) | |
tree | 9be350eeb300a08be68c1cdcaf59ea48f5724dcb /source/blender/draw/intern/draw_cache_impl_lattice.c | |
parent | f3f2602c88d866db6052ed03bbec1c9da4183e57 (diff) |
Edit Mesh: Refactor Edit cage drawing to use old style drawing
This is work in progress. Look is not final.
This align data VBO data structure used for edti cage drawing to the one
use for normal drawing.
We no longer use barycentric coords to draw the lines an just rasterize
line primitives for edge drawing. This is a bit slower than using the
previous fast method but faster than the "correct" (edge artifact free)
method. This also make the code way simpler.
This also makes it possible to reuse possible and normal vbos used for
shading if the edit cage matches the
This also touches the UV batch code to share as much render data as
possible. The code also prepare for edit cage "modified" drawing cage (with
modifier applied) but is not enabled since selection and operators does not
work with modified cage yet.
Diffstat (limited to 'source/blender/draw/intern/draw_cache_impl_lattice.c')
-rw-r--r-- | source/blender/draw/intern/draw_cache_impl_lattice.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl_lattice.c b/source/blender/draw/intern/draw_cache_impl_lattice.c index 53ce55bae71..d1abd19c2ff 100644 --- a/source/blender/draw/intern/draw_cache_impl_lattice.c +++ b/source/blender/draw/intern/draw_cache_impl_lattice.c @@ -513,10 +513,10 @@ static void lattice_batch_cache_create_overlay_batches(Lattice *lt) char vflag = 0; if (bp->f1 & SELECT) { if (i == rdata->actbp) { - vflag |= VFLAG_VERTEX_ACTIVE; + vflag |= VFLAG_VERT_ACTIVE; } else { - vflag |= VFLAG_VERTEX_SELECTED; + vflag |= VFLAG_VERT_SELECTED; } } |