From 556c714805976792bc03721c08e8f2624c6627d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 21 Feb 2013 21:30:06 +0100 Subject: [PATCH] Primitives: fixed Icosphere subdivision. --- src/Primitives/Icosphere.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Primitives/Icosphere.h b/src/Primitives/Icosphere.h index 9377eb68e..4f24331d6 100644 --- a/src/Primitives/Icosphere.h +++ b/src/Primitives/Icosphere.h @@ -64,6 +64,7 @@ template class Icosphere { }); MeshTools::clean(*indices(), *normals(0)); + positions(0)->clear(); positions(0)->reserve(normals(0)->size()); for(auto i: *normals(0)) positions(0)->push_back(Point3D(i)); }