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-04-20 00:51:58 +0300
committerHans Goudey <h.goudey@me.com>2022-04-20 00:51:58 +0300
commit9ec94c3882a414dc60dd17abfa12838f94f63c24 (patch)
tree2a0a9911f894dcb26efb8fff3830991071778966 /source/blender/blenloader/intern/versioning_280.c
parentd813ee55fdc87282d6ee2452e4db4c218e23986d (diff)
Cleanup: Don't recalculate normals in versioning code
Normals are not read from files anymore, calculating them in versioning is unnecessary and wasteful.
Diffstat (limited to 'source/blender/blenloader/intern/versioning_280.c')
-rw-r--r--source/blender/blenloader/intern/versioning_280.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/source/blender/blenloader/intern/versioning_280.c b/source/blender/blenloader/intern/versioning_280.c
index 0996b35c8ea..b884fa96d12 100644
--- a/source/blender/blenloader/intern/versioning_280.c
+++ b/source/blender/blenloader/intern/versioning_280.c
@@ -1620,11 +1620,6 @@ void do_versions_after_linking_280(Main *bmain, ReportList *UNUSED(reports))
/* Deprecated, only kept for conversion. */
BKE_mesh_tessface_clear(me);
-
- /* Moved from do_versions because we need updated polygons for calculating normals. */
- if (!MAIN_VERSION_ATLEAST(bmain, 256, 6)) {
- BKE_mesh_calc_normals(me);
- }
}
}