[Bf-blender-cvs] [1479175a9a5] soc-2021-adaptive-cloth: adaptive_cloth: AdaptiveMesh: split_edges: run flip_edges()

ishbosamiya noreply at git.blender.org
Mon Jul 26 08:17:43 CEST 2021


Commit: 1479175a9a58ad9c6ca50aba0dc1c3799005d086
Author: ishbosamiya
Date:   Thu Jul 22 17:41:29 2021 +0530
Branches: soc-2021-adaptive-cloth
https://developer.blender.org/rB1479175a9a58ad9c6ca50aba0dc1c3799005d086

adaptive_cloth: AdaptiveMesh: split_edges: run flip_edges()

On the faces that were added by the split edge operation, run the
flip_edges() function.

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

M	source/blender/blenkernel/intern/cloth_remesh.cc

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

diff --git a/source/blender/blenkernel/intern/cloth_remesh.cc b/source/blender/blenkernel/intern/cloth_remesh.cc
index 737aa60710a..e2d3714d790 100644
--- a/source/blender/blenkernel/intern/cloth_remesh.cc
+++ b/source/blender/blenkernel/intern/cloth_remesh.cc
@@ -379,8 +379,9 @@ class AdaptiveMesh : public Mesh<NodeData<END>, VertData, EdgeData, internal::Em
           this->edge_set_size(edge);
         }
 
-        /* TODO(ish): Need to flip edges of those faces that have been
-         * affected by the split edge operation. */
+        /* Flip edges of those faces that were created during the
+         * split edge operation */
+        this->flip_edges(mesh_diff.get_added_faces());
       }
 
       splittable_edges_set = this->get_splittable_edge_indices_set();



More information about the Bf-blender-cvs mailing list