diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2022-06-01 11:39:54 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2022-06-01 11:48:56 +0300 |
commit | d3b3d723037675022cd31fb7b51ad9ca3969e893 (patch) | |
tree | 93deca5d625efa435e289de29c1584f247ddf33c /source/blender/blenkernel | |
parent | e5ab1495e5cdd55fb5712804ff7c70fbb6303af3 (diff) |
Fix T98520: Sculpt operators can unintentionally clear multires mask
Typo in {rBcf69652618fe}.
Maniphest Tasks: T98520
Differential Revision: https://developer.blender.org/D15087
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/subdiv_ccg_mask.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/subdiv_ccg_mask.c b/source/blender/blenkernel/intern/subdiv_ccg_mask.c index 04a274d0215..1290f1e0834 100644 --- a/source/blender/blenkernel/intern/subdiv_ccg_mask.c +++ b/source/blender/blenkernel/intern/subdiv_ccg_mask.c @@ -155,7 +155,7 @@ static void mask_init_functions(SubdivCCGMaskEvaluator *mask_evaluator) bool BKE_subdiv_ccg_mask_init_from_paint(SubdivCCGMaskEvaluator *mask_evaluator, const struct Mesh *mesh) { - if (CustomData_get_layer(&mesh->ldata, CD_GRID_PAINT_MASK)) { + if (!CustomData_get_layer(&mesh->ldata, CD_GRID_PAINT_MASK)) { return false; } /* Allocate all required memory. */ |