[Bf-blender-cvs] [455d195d550] master: OBJ Export: Remove edge recalculation

Hans Goudey noreply at git.blender.org
Sat Nov 5 16:28:39 CET 2022


Commit: 455d195d5504c8ac652e6a375c31883d0cd2f560
Author: Hans Goudey
Date:   Sat Nov 5 16:28:13 2022 +0100
Branches: master
https://developer.blender.org/rB455d195d5504c8ac652e6a375c31883d0cd2f560

OBJ Export: Remove edge recalculation

The removed function call removes all attributes from mesh edges
and rebuilds the mesh edge topology. This isn't necessary because
meshes always have edges in the first place.

Exporting a 4 million face grid, this saved 1.5 seconds out of 4
seconds total for the whole export.

Tests files have to be updated, since the edge calculation could
potentially change the order of elements. This is also a fix, since
previously the exporter would delete all attributes on the evaluated
mesh edges.

Differential Revision: https://developer.blender.org/D16391

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

M	source/blender/io/wavefront_obj/exporter/obj_export_mesh.cc

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

diff --git a/source/blender/io/wavefront_obj/exporter/obj_export_mesh.cc b/source/blender/io/wavefront_obj/exporter/obj_export_mesh.cc
index 3b4e44ff7e4..a95f917869b 100644
--- a/source/blender/io/wavefront_obj/exporter/obj_export_mesh.cc
+++ b/source/blender/io/wavefront_obj/exporter/obj_export_mesh.cc
@@ -183,7 +183,6 @@ void OBJMesh::ensure_mesh_normals() const
 
 void OBJMesh::ensure_mesh_edges() const
 {
-  BKE_mesh_calc_edges(export_mesh_eval_, true, false);
   BKE_mesh_calc_edges_loose(export_mesh_eval_);
 }



More information about the Bf-blender-cvs mailing list