Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-02-21 20:17:41 +0300
committerHans Goudey <h.goudey@me.com>2022-02-21 20:17:41 +0300
commitb7171d1b822010f7ccc59631b2f2bda95ef6058a (patch)
tree4c4e232a6b6630a87f48d3208a54902fe290a98c
parenta81cc5cbcb6c9e9ef4bee610ac1d325d33884e98 (diff)
Cleanup: Use function to check if normals are dirty
This makes the fix for T95839 simpler. Similar to 969c4a45ce09100ed.
-rw-r--r--source/blender/blenkernel/intern/data_transfer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/data_transfer.c b/source/blender/blenkernel/intern/data_transfer.c
index 0ad7efb6347..79aecb4598a 100644
--- a/source/blender/blenkernel/intern/data_transfer.c
+++ b/source/blender/blenkernel/intern/data_transfer.c
@@ -1396,7 +1396,7 @@ bool BKE_object_data_transfer_ex(struct Depsgraph *depsgraph,
BLI_assert((ob_src != ob_dst) && (ob_src->type == OB_MESH) && (ob_dst->type == OB_MESH));
if (me_dst) {
- dirty_nors_dst = (me_dst->runtime.cd_dirty_vert & CD_NORMAL) != 0;
+ dirty_nors_dst = BKE_mesh_vertex_normals_are_dirty(me_dst);
/* Never create needed custom layers on passed destination mesh
* (assumed to *not* be ob_dst->data, aka modifier case). */
use_create = false;