diff options
author | Luca Rood <dev@lucarood.com> | 2017-06-26 15:52:59 +0300 |
---|---|---|
committer | Luca Rood <dev@lucarood.com> | 2017-06-26 15:52:59 +0300 |
commit | bafb90480706ad0c380a8eb1907beb046bfbcf1e (patch) | |
tree | 1e28e4c1946ba7ed2b112f9fc4891a39cce6d2e7 /source/blender/draw/modes/paint_weight_mode.c | |
parent | 37593b6a4242c8a31ffd6ce82b861b2097769ccf (diff) |
Fix T51559: Update draw cache when changing flat/smooth shading
This also renames some flags/variables to be more generic for updating
purposes. The call used here was previously only used for updating
paint data, but as it was reused here, flags and variables were renamed
to accomodate more clearly to the new usages.
Diffstat (limited to 'source/blender/draw/modes/paint_weight_mode.c')
-rw-r--r-- | source/blender/draw/modes/paint_weight_mode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/modes/paint_weight_mode.c b/source/blender/draw/modes/paint_weight_mode.c index 270566b6cc6..6a46acd869b 100644 --- a/source/blender/draw/modes/paint_weight_mode.c +++ b/source/blender/draw/modes/paint_weight_mode.c @@ -92,7 +92,7 @@ static void PAINT_WEIGHT_engine_init(void *UNUSED(vedata)) if (e_data.actdef != draw_ctx->obact->actdef) { e_data.actdef = draw_ctx->obact->actdef; - BKE_mesh_batch_cache_dirty(draw_ctx->obact->data, BKE_MESH_BATCH_DIRTY_PAINT); + BKE_mesh_batch_cache_dirty(draw_ctx->obact->data, BKE_MESH_BATCH_DIRTY_NOCHECK); } if (!e_data.weight_face_shader) { |