diff options
author | Hans Goudey <h.goudey@me.com> | 2022-02-18 22:21:36 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-02-18 22:21:36 +0300 |
commit | 969c4a45ce09100edc961fd0dc6f37d4689373c7 (patch) | |
tree | 73930cda7e3eab5c538df678abeaca7f823888c7 /source/blender/modifiers/intern/MOD_displace.c | |
parent | eaa4aa864427e8aaa0bb1d4f0ce930b562aabc05 (diff) |
Cleanup: Use functions for accessing mesh normal dirty state
It's better not to expose the details of where the dirty flags are
stored to every place that wants to know if the normals are dirty.
Some of these places are relics from before vertex normals were
computed lazily anyway, so this is more of an incrememtal cleanup.
This will make part of the fix for T95839 simpler.
Diffstat (limited to 'source/blender/modifiers/intern/MOD_displace.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_displace.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/modifiers/intern/MOD_displace.c b/source/blender/modifiers/intern/MOD_displace.c index c81e6cafa39..cdb7035570e 100644 --- a/source/blender/modifiers/intern/MOD_displace.c +++ b/source/blender/modifiers/intern/MOD_displace.c @@ -329,8 +329,7 @@ static void displaceModifier_do(DisplaceModifierData *dmd, if (CustomData_has_layer(ldata, CD_CUSTOMLOOPNORMAL)) { float(*clnors)[3] = NULL; - if ((mesh->runtime.cd_dirty_vert & CD_MASK_NORMAL) || - !CustomData_has_layer(ldata, CD_NORMAL)) { + if (!CustomData_has_layer(ldata, CD_NORMAL)) { BKE_mesh_calc_normals_split(mesh); } |