Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-06-05 14:28:16 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-06-05 14:33:15 +0300
commit1a912462f4e51d069bda5084f3d702006e0a5b7e (patch)
treef18c01eaf368d29ca16a11a1c4d940af7d9d8abc /source/blender/bmesh
parentbcf9c73cbc8386bdef1e08af73e66d0e5c57ad6e (diff)
BMesh: avoid extra faces-of-edges loop building partial update data
Diffstat (limited to 'source/blender/bmesh')
-rw-r--r--source/blender/bmesh/intern/bmesh_mesh_partial_update.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/bmesh/intern/bmesh_mesh_partial_update.c b/source/blender/bmesh/intern/bmesh_mesh_partial_update.c
index b87d9811049..2290e58fe6c 100644
--- a/source/blender/bmesh/intern/bmesh_mesh_partial_update.c
+++ b/source/blender/bmesh/intern/bmesh_mesh_partial_update.c
@@ -219,7 +219,9 @@ BMPartialUpdate *BM_mesh_partial_create_from_verts(BMesh *bm,
BMEdge *e_iter = e_first;
do {
if (e_iter->l) {
- partial_elem_edge_ensure(bmpinfo, edges_tag, e_iter);
+ if (!partial_elem_edge_ensure(bmpinfo, edges_tag, e_iter)) {
+ continue;
+ }
/* These faces need to be taken into account when weighting vertex normals
* but aren't needed for tessellation nor do their normals need to be recalculated.