diff options
-rw-r--r-- | source/blender/draw/intern/draw_cache_impl_mesh.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl_mesh.c b/source/blender/draw/intern/draw_cache_impl_mesh.c index bb171565f59..eb626e2f954 100644 --- a/source/blender/draw/intern/draw_cache_impl_mesh.c +++ b/source/blender/draw/intern/draw_cache_impl_mesh.c @@ -2084,6 +2084,10 @@ static bool mesh_batch_cache_valid(Mesh *me) return false; } + if (cache->mat_len != mesh_render_mat_len_get(me)) { + return false; + } + return true; } |