Cleanup: Fix wrong assert introduced by rBd98ae27f02c7
authorClément Foucault <foucault.clem@gmail.com>
Thu, 10 Oct 2019 18:16:14 +0000 (20:16 +0200)
committerClément Foucault <foucault.clem@gmail.com>
Thu, 10 Oct 2019 18:16:22 +0000 (20:16 +0200)
source/blender/draw/intern/draw_cache_impl_mesh.c

index b9796a5941ecd5da8a7acf4f97194a7fe6a83459..b8b657354b2d487a0175a3cb2a7b70039c11cfe0 100644 (file)
@@ -925,7 +925,7 @@ static void edituv_request_active_uv(MeshBatchCache *cache, Mesh *me)
   mesh_cd_layers_type_clear(&cd_needed);
   mesh_cd_calc_edit_uv_layer(me, &cd_needed);
 
-  BLI_assert(cd_needed.uv != 0 &&
+  BLI_assert(cd_needed.edit_uv != 0 &&
              "No uv layer available in edituv, but batches requested anyway!");
 
   mesh_cd_calc_active_mask_uv_layer(me, &cd_needed);