From f2599778f3767a985076c538cc4cf17f2095aa4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 30 Jan 2013 17:44:38 +0100 Subject: [PATCH] Primitives: fixed compilation error. Caused by recent change of Point*D constructor to explicit. --- src/Primitives/Icosphere.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Primitives/Icosphere.h b/src/Primitives/Icosphere.h index 79f5583e3..9377eb68e 100644 --- a/src/Primitives/Icosphere.h +++ b/src/Primitives/Icosphere.h @@ -64,7 +64,8 @@ template class Icosphere { }); MeshTools::clean(*indices(), *normals(0)); - positions(0)->assign(normals(0)->begin(), normals(0)->end()); + positions(0)->reserve(normals(0)->size()); + for(auto i: *normals(0)) positions(0)->push_back(Point3D(i)); } };