Fix crash displaying UV's

This commit is contained in:
Campbell Barton 2019-05-09 14:46:44 +10:00
parent be7031bee3
commit 6e33729462
Notes: blender-bot 2023-02-14 05:51:15 +01:00
Referenced by issue #64339, Crash in uv editor Relax and Pinch tools
Referenced by issue #64329, Crash when switching to UVEditing or Texture Paint
1 changed files with 1 additions and 0 deletions

View File

@ -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);