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

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/xs
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2019-06-10 18:36:15 +0300
committerbubnikv <bubnikv@gmail.com>2019-06-10 18:36:15 +0300
commit65238a89b10fb18e7f9b647f5026da9276d32d58 (patch)
tree6c33ced44edaef3bcc202cbdae7bea4a6e2d7ffc /xs
parenta1c38794fbc12c0d88c59ac85230f058d0779b64 (diff)
admesh refactoring: Removed the shared_vertices counter as it is now
contained inside v_shared std::vector
Diffstat (limited to 'xs')
-rw-r--r--xs/xsp/TriangleMesh.xsp4
1 files changed, 2 insertions, 2 deletions
diff --git a/xs/xsp/TriangleMesh.xsp b/xs/xsp/TriangleMesh.xsp
index 3cfbaa54d..53b052027 100644
--- a/xs/xsp/TriangleMesh.xsp
+++ b/xs/xsp/TriangleMesh.xsp
@@ -104,8 +104,8 @@ TriangleMesh::vertices()
// vertices
AV* vertices = newAV();
- av_extend(vertices, THIS->stl.stats.shared_vertices);
- for (int i = 0; i < THIS->stl.stats.shared_vertices; i++) {
+ av_extend(vertices, THIS->stl.v_shared.size());
+ for (size_t i = 0; i < THIS->stl.v_shared.size(); i++) {
AV* vertex = newAV();
av_store(vertices, i, newRV_noinc((SV*)vertex));
av_extend(vertex, 2);