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:
Diffstat (limited to 'source/blender/editors/object/object_remesh.cc')
-rw-r--r--source/blender/editors/object/object_remesh.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/editors/object/object_remesh.cc b/source/blender/editors/object/object_remesh.cc
index b9acf5ae27b..8c133dfecfa 100644
--- a/source/blender/editors/object/object_remesh.cc
+++ b/source/blender/editors/object/object_remesh.cc
@@ -73,6 +73,7 @@
#include "object_intern.h" /* own include */
+using blender::float3;
using blender::IndexRange;
using blender::Span;
@@ -681,7 +682,7 @@ static bool mesh_is_manifold_consistent(Mesh *mesh)
* check that the direction of the faces are consistent and doesn't suddenly
* flip
*/
- const Span<MVert> verts = mesh->verts();
+ const Span<float3> positions = mesh->positions();
const Span<MEdge> edges = mesh->edges();
const Span<MLoop> loops = mesh->loops();
@@ -719,9 +720,7 @@ static bool mesh_is_manifold_consistent(Mesh *mesh)
break;
}
/* Check for zero length edges */
- const MVert &v1 = verts[edges[i].v1];
- const MVert &v2 = verts[edges[i].v2];
- if (compare_v3v3(v1.co, v2.co, 1e-4f)) {
+ if (compare_v3v3(positions[edges[i].v1], positions[edges[i].v2], 1e-4f)) {
is_manifold_consistent = false;
break;
}