diff --git a/src/surface/exact_geodesics.cpp b/src/surface/exact_geodesics.cpp index e34237e1..6b126962 100644 --- a/src/surface/exact_geodesics.cpp +++ b/src/surface/exact_geodesics.cpp @@ -1343,8 +1343,8 @@ IntervalList GeodesicAlgorithmExact::getEdgeIntervals(Edge e) const { return m_e void GeodesicAlgorithmExact::set_stop_conditions(const std::vector& stop_points, double stop_distance) { m_max_propagation_distance = stop_distance; + m_stop_vertices.clear(); if (stop_points.empty()) { - m_stop_vertices.clear(); return; }