Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-05-22 09:10:36 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-05-22 09:10:36 +0300
commit99f994e7edfd20fb162ea45cad09b5e8c7fc7e26 (patch)
tree588abb225ff47fbf79c66603bca2ebca9b836d26 /source/blender/draw/intern/draw_cache_impl_lattice.c
parent17778ddeb7dbb95d75b61fe7f20185111d5cb2c1 (diff)
Fix crash drawing edit-lattice
Edit-mode was never using batch cache.
Diffstat (limited to 'source/blender/draw/intern/draw_cache_impl_lattice.c')
-rw-r--r--source/blender/draw/intern/draw_cache_impl_lattice.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl_lattice.c b/source/blender/draw/intern/draw_cache_impl_lattice.c
index 6b0a35c3341..6046d9854fb 100644
--- a/source/blender/draw/intern/draw_cache_impl_lattice.c
+++ b/source/blender/draw/intern/draw_cache_impl_lattice.c
@@ -319,10 +319,7 @@ static bool lattice_batch_cache_valid(Lattice *lt)
return false;
}
else {
- if (cache->is_editmode) {
- return false;
- }
- else if ((cache->dims.u_len != lt->pntsu) ||
+ if ((cache->dims.u_len != lt->pntsu) ||
(cache->dims.v_len != lt->pntsv) ||
(cache->dims.w_len != lt->pntsw) ||
((cache->show_only_outside != ((lt->flag & LT_OUTSIDE) != 0))))