From 7e3de63856cdf335c6560884cba98ba3121b9d98 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Tue, 30 Jan 2018 22:43:10 +0100 Subject: [PATCH] Fix else branch in SphericalManifold::normals_at_vertices --- source/grid/manifold_lib.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/source/grid/manifold_lib.cc b/source/grid/manifold_lib.cc index 78ab035496..c17484212b 100644 --- a/source/grid/manifold_lib.cc +++ b/source/grid/manifold_lib.cc @@ -462,10 +462,12 @@ get_normals_at_vertices (const typename Triangulation::face_iterat distances_to_first_vertex.end()); if (*minmax_distance.second-*minmax_distance.first<1.e-10 * *min_distance_to_first_vertex) - for (unsigned int vertex=0; vertexvertex(vertex)-center; - - Manifold::get_normals_at_vertices(face, face_vertex_normals); + { + for (unsigned int vertex=0; vertexvertex(vertex)-center; + } + else + Manifold::get_normals_at_vertices(face, face_vertex_normals); } -- 2.39.5