Commit: e1aa076ee88891fcaf1f61ecb65cc6ba24404221
Author: Hans Goudey
Date:   Tue Apr 19 16:51:58 2022 -0500
Branches: draw-deferred-compilation-experiment
https://developer.blender.org/rBe1aa076ee88891fcaf1f61ecb65cc6ba24404221

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

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to