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:
authorCampbell Barton <ideasman42@gmail.com>2019-08-25 07:08:01 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-08-25 08:49:26 +0300
commitbada34c766029b1054b7255fd471b0f90cdda8ce (patch)
tree375332f04582b7cea36442f981e909a2b4e8474a /source/blender/blenloader/intern/versioning_250.c
parent4ab50eb7facec7561bfb04838a74c5040d26a5e4 (diff)
Cleanup: remove BKE_mesh_calc_normals_tessface
This was used for versioning, now normals are calculated after initializing MPoly data.
Diffstat (limited to 'source/blender/blenloader/intern/versioning_250.c')
-rw-r--r--source/blender/blenloader/intern/versioning_250.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/source/blender/blenloader/intern/versioning_250.c b/source/blender/blenloader/intern/versioning_250.c
index 6a5cfc45628..ba4dc2d33c7 100644
--- a/source/blender/blenloader/intern/versioning_250.c
+++ b/source/blender/blenloader/intern/versioning_250.c
@@ -2080,11 +2080,12 @@ void blo_do_versions_250(FileData *fd, Library *lib, Main *bmain)
}
}
- if (bmain->versionfile < 256 || (bmain->versionfile == 256 && bmain->subversionfile < 6)) {
- Mesh *me;
-
- for (me = bmain->meshes.first; me; me = me->id.next) {
- BKE_mesh_calc_normals_tessface(me->mvert, me->totvert, me->mface, me->totface, NULL);
+ if (0) {
+ if (bmain->versionfile < 256 || (bmain->versionfile == 256 && bmain->subversionfile < 6)) {
+ for (Mesh *me = bmain->meshes.first; me; me = me->id.next) {
+ /* Vertex normal calculation from legacy 'MFace' has been removed.
+ * update after calculating polygons in file reading code instead. */
+ }
}
}