diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-05-09 07:46:44 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-05-09 07:46:44 +0300 |
commit | 6e33729462d9bdb40000d2cc58c5adec44ea2c67 (patch) | |
tree | 0fc55ad85d074799b3aecba807c4c21e36b96cd3 /source/blender/editors/uvedit/uvedit_draw.c | |
parent | be7031bee348c27ecc92b1bf9e2046f1108a7301 (diff) |
Fix crash displaying UV's
Diffstat (limited to 'source/blender/editors/uvedit/uvedit_draw.c')
-rw-r--r-- | source/blender/editors/uvedit/uvedit_draw.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/uvedit/uvedit_draw.c b/source/blender/editors/uvedit/uvedit_draw.c index 804b9c22104..1bdcf28d496 100644 --- a/source/blender/editors/uvedit/uvedit_draw.c +++ b/source/blender/editors/uvedit/uvedit_draw.c @@ -170,6 +170,7 @@ static void uvedit_get_batches(Object *ob, const bool draw_stretch = (sima->flag & SI_DRAW_STRETCH) != 0; const bool draw_faces = (sima->flag & SI_NO_DRAWFACES) == 0; + DRW_mesh_batch_cache_validate(ob->data); *edges = DRW_mesh_batch_cache_get_edituv_edges(ob->data); *verts = DRW_mesh_batch_cache_get_edituv_verts(ob->data); |