From 594d40cec8f8f30a783cc7438170ee476dbe1c25 Mon Sep 17 00:00:00 2001 From: tamasmeszaros Date: Thu, 14 Mar 2019 09:36:03 +0100 Subject: [PATCH] Fixing error with sla array indexing --- src/libslic3r/SLA/SLASupportTree.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libslic3r/SLA/SLASupportTree.cpp b/src/libslic3r/SLA/SLASupportTree.cpp index 5f339fc96f..9f25750369 100644 --- a/src/libslic3r/SLA/SLASupportTree.cpp +++ b/src/libslic3r/SLA/SLASupportTree.cpp @@ -1411,10 +1411,11 @@ public: using libnest2d::opt::GeneticOptimizer; using libnest2d::opt::StopCriteria; - for(unsigned i = 0, fidx = filtered_indices[0]; - i < filtered_indices.size(); ++i, fidx = filtered_indices[i]) + for(unsigned i = 0, fidx = 0; i < filtered_indices.size(); ++i) { m_thr(); + + fidx = filtered_indices[i]; auto n = nmls.row(i); // for all normals we generate the spherical coordinates and