diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-05-10 16:03:18 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-05-10 16:03:18 +0300 |
commit | 1456b4130676b709a07e82f40a18ed46c445fe2d (patch) | |
tree | 72b5e1b8bef449e1428d3e492223fb7067e75109 | |
parent | c0b8d071a75403c9dcb020420db074e7bb17e887 (diff) |
Fix T64420 Weight Paint colours not visible
-rw-r--r-- | source/blender/draw/intern/draw_cache_impl_mesh.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl_mesh.c b/source/blender/draw/intern/draw_cache_impl_mesh.c index 0ccd53fe39e..92e24e72954 100644 --- a/source/blender/draw/intern/draw_cache_impl_mesh.c +++ b/source/blender/draw/intern/draw_cache_impl_mesh.c @@ -4296,7 +4296,7 @@ GPUBatch *DRW_mesh_batch_cache_get_loose_edges(Mesh *me) GPUBatch *DRW_mesh_batch_cache_get_surface_weights(Mesh *me) { MeshBatchCache *cache = mesh_batch_cache_get(me); - mesh_batch_cache_add_request(cache, MBC_LOOSE_EDGES); + mesh_batch_cache_add_request(cache, MBC_SURFACE_WEIGHTS); return DRW_batch_request(&cache->batch.surface_weights); } @@ -4912,7 +4912,7 @@ void DRW_mesh_batch_cache_create_requested( if (cache->batch_requested & MBC_SURFACE_WEIGHTS) { /* Check vertex weights. */ - if ((cache->batch.surface_weights != 0) && (ts != NULL)) { + if ((cache->batch.surface_weights != NULL) && (ts != NULL)) { struct DRW_MeshWeightState wstate; BLI_assert(ob->type == OB_MESH); drw_mesh_weight_state_extract(ob, me, ts, is_paint_mode, &wstate); |