[Bf-blender-cvs] [9ec94c3882a] master: Cleanup: Don't recalculate normals in versioning code

Hans Goudey noreply at git.blender.org
Tue Apr 19 23:52:05 CEST 2022


Commit: 9ec94c3882a414dc60dd17abfa12838f94f63c24
Author: Hans Goudey
Date:   Tue Apr 19 16:51:58 2022 -0500
Branches: master
https://developer.blender.org/rB9ec94c3882a414dc60dd17abfa12838f94f63c24

Cleanup: Don't recalculate normals in versioning code

Normals are not read from files anymore, calculating them in versioning
is unnecessary and wasteful.

===================================================================

M	source/blender/blenloader/intern/versioning_280.c

===================================================================

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);
-      }
     }
   }



More information about the Bf-blender-cvs mailing list