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:
authorClément Foucault <foucault.clem@gmail.com>2019-05-09 12:16:54 +0300
committerClément Foucault <foucault.clem@gmail.com>2019-05-09 12:16:54 +0300
commitc74e9273a9884128c929029f49210f81ee1d328a (patch)
tree014b12ab343a87b2be42b8ae9473241e8db07710 /source/blender/draw/intern/draw_cache.c
parenta951aa5f6203e87e9a7770068f74670fce866814 (diff)
Fix T64366 DRW: Crash opening Mr Elephant scene since recent commit
Diffstat (limited to 'source/blender/draw/intern/draw_cache.c')
-rw-r--r--source/blender/draw/intern/draw_cache.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_cache.c b/source/blender/draw/intern/draw_cache.c
index de203906f83..e9896261004 100644
--- a/source/blender/draw/intern/draw_cache.c
+++ b/source/blender/draw/intern/draw_cache.c
@@ -3955,6 +3955,7 @@ GPUBatch *DRW_cache_cursor_get(bool crosshair_lines)
void drw_batch_cache_validate(Object *ob)
{
+ struct Mesh *mesh_eval = ob->runtime.mesh_eval;
switch (ob->type) {
case OB_MESH:
DRW_mesh_batch_cache_validate((Mesh *)ob->data);
@@ -3962,6 +3963,9 @@ void drw_batch_cache_validate(Object *ob)
case OB_CURVE:
case OB_FONT:
case OB_SURF:
+ if (mesh_eval != NULL) {
+ DRW_mesh_batch_cache_validate(mesh_eval);
+ }
DRW_curve_batch_cache_validate((Curve *)ob->data);
break;
case OB_MBALL: