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:
authorHans Goudey <h.goudey@me.com>2022-09-12 01:36:06 +0300
committerHans Goudey <h.goudey@me.com>2022-09-12 01:36:06 +0300
commit0aeb1f0c5bb95be426d96a5ad9924610d909899d (patch)
tree7662d28b86f0de0894e48f2aa9ece429424c1a0b /source/blender/editors/mesh/mesh_data.cc
parent789297ecb91002aa7c4e7c59a8a6c4fd2b80c462 (diff)
Start converting mesh positions to a generic attribute
Diffstat (limited to 'source/blender/editors/mesh/mesh_data.cc')
-rw-r--r--source/blender/editors/mesh/mesh_data.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/mesh/mesh_data.cc b/source/blender/editors/mesh/mesh_data.cc
index 638b25dc3e0..933f8a75c6c 100644
--- a/source/blender/editors/mesh/mesh_data.cc
+++ b/source/blender/editors/mesh/mesh_data.cc
@@ -45,6 +45,7 @@
#include "mesh_intern.h" /* own include */
using blender::Array;
+using blender::float3;
using blender::MutableSpan;
using blender::Span;
@@ -798,12 +799,12 @@ static int mesh_customdata_custom_splitnormals_add_exec(bContext *C, wmOperator
/* Tag edges as sharp according to smooth threshold if needed,
* to preserve autosmooth shading. */
if (me->flag & ME_AUTOSMOOTH) {
- const Span<MVert> verts = me->verts();
+ const Span<float3> verts = me->positions();
MutableSpan<MEdge> edges = me->edges_for_write();
const Span<MPoly> polys = me->polys();
const Span<MLoop> loops = me->loops();
- BKE_edges_sharp_from_angle_set(verts.data(),
+ BKE_edges_sharp_from_angle_set(reinterpret_cast<const float(*)[3]>(verts.data()),
verts.size(),
edges.data(),
edges.size(),