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
path: root/source
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-02-22 21:13:13 +0300
committerHans Goudey <h.goudey@me.com>2022-02-22 21:13:13 +0300
commitad3ee84f4e5ff3aa7c7b7b104a32b856e3a2cd9a (patch)
tree5f6d800bb3b116153ea2d7ed80aa223ba110d9e4 /source
parentc7a9f76149d85dfb64710722a45979f6decedbb1 (diff)
Cleanup: Remove unused mesh dirty flags
These were only set in two places. One was related to "tessellated loop normal", and the other derived corner normals. The values were never checked though, after 59343ee1627f4c369. The handling of dirty face corner normals is clearly problematic, but in the future it should be handled like the normal layers on the other domains instead. Ref D14154, T95839
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/mesh.cc2
-rw-r--r--source/blender/makesdna/DNA_mesh_types.h11
-rw-r--r--source/blender/modifiers/intern/MOD_uvproject.c3
3 files changed, 0 insertions, 16 deletions
diff --git a/source/blender/blenkernel/intern/mesh.cc b/source/blender/blenkernel/intern/mesh.cc
index 83619cb50ef..37564f9334f 100644
--- a/source/blender/blenkernel/intern/mesh.cc
+++ b/source/blender/blenkernel/intern/mesh.cc
@@ -1975,8 +1975,6 @@ void BKE_mesh_calc_normals_split_ex(Mesh *mesh, MLoopNorSpaceArray *r_lnors_spac
nullptr);
BKE_mesh_assert_normals_dirty_or_calculated(mesh);
-
- mesh->runtime.cd_dirty_loop &= ~CD_MASK_NORMAL;
}
void BKE_mesh_calc_normals_split(Mesh *mesh)
diff --git a/source/blender/makesdna/DNA_mesh_types.h b/source/blender/makesdna/DNA_mesh_types.h
index f40e91c1d5e..d8a853681fd 100644
--- a/source/blender/makesdna/DNA_mesh_types.h
+++ b/source/blender/makesdna/DNA_mesh_types.h
@@ -135,17 +135,6 @@ typedef struct Mesh_Runtime {
float (*poly_normals)[3];
void *_pad2;
-
- /**
- * Used to mark when derived data needs to be recalculated for a certain layer.
- * Currently only normals.
- */
-
- int64_t cd_dirty_vert;
- int64_t cd_dirty_edge;
- int64_t cd_dirty_loop;
- int64_t cd_dirty_poly;
-
} Mesh_Runtime;
typedef struct Mesh {
diff --git a/source/blender/modifiers/intern/MOD_uvproject.c b/source/blender/modifiers/intern/MOD_uvproject.c
index 51ec0a46d32..d6f493267f8 100644
--- a/source/blender/modifiers/intern/MOD_uvproject.c
+++ b/source/blender/modifiers/intern/MOD_uvproject.c
@@ -285,9 +285,6 @@ static Mesh *uvprojectModifier_do(UVProjectModifierData *umd,
mesh->runtime.is_original = false;
- /* Mark tessellated CD layers as dirty. */
- mesh->runtime.cd_dirty_vert |= CD_MASK_TESSLOOPNORMAL;
-
return mesh;
}