[Bf-blender-cvs] [fdad77d73d0] master: BMesh: use faster normal update method for edit-mesh coordinates

Campbell Barton noreply at git.blender.org
Tue Jun 15 05:58:32 CEST 2021


Commit: fdad77d73d0507cabc5181d553d6f108b9df0907
Author: Campbell Barton
Date:   Tue Jun 15 13:52:00 2021 +1000
Branches: master
https://developer.blender.org/rBfdad77d73d0507cabc5181d553d6f108b9df0907

BMesh: use faster normal update method for edit-mesh coordinates

This wasn't included in the previous fix so it'd be 2.93 compatible.

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

M	source/blender/editors/space_view3d/view3d_buttons.c

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

diff --git a/source/blender/editors/space_view3d/view3d_buttons.c b/source/blender/editors/space_view3d/view3d_buttons.c
index 1cdc74b801a..60e1c780b9e 100644
--- a/source/blender/editors/space_view3d/view3d_buttons.c
+++ b/source/blender/editors/space_view3d/view3d_buttons.c
@@ -927,8 +927,9 @@ static void v3d_editvertex_buts(uiLayout *layout, View3D *v3d, Object *ob, float
       }
 
       if (apply_vcos) {
-        EDBM_mesh_normals_update(em);
-        BKE_editmesh_looptri_calc(em);
+        /* TODO: use the #BKE_editmesh_looptri_and_normals_calc_with_partial
+         * This requires begin/end states for UI interaction (which currently aren't supported). */
+        BKE_editmesh_looptri_and_normals_calc(em);
       }
 
       /* Edges */



More information about the Bf-blender-cvs mailing list