From d950f9160e82b0a19cb1ec4e7bb216cf736ab650 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 22 Mar 2015 00:27:56 +0100 Subject: [PATCH] SceneGraph: fixed typo in example code. Thanks, @Squareys! --- src/Magnum/SceneGraph/Drawable.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Magnum/SceneGraph/Drawable.h b/src/Magnum/SceneGraph/Drawable.h index 909fc3c64..8e56f25c2 100644 --- a/src/Magnum/SceneGraph/Drawable.h +++ b/src/Magnum/SceneGraph/Drawable.h @@ -52,8 +52,8 @@ typedef SceneGraph::Scene Scene3D; class RedCube: public Object3D, SceneGraph::Drawable3D { public: - RedCube(Object3D* parent, SceneGraph::DrawableGroup3D* group): Object3D{parent}, SceneGraph::Drawable3D{*this, group} { - std::tie(_mesh, _vertices, _indices) = MeshTools::compile(Primitives::UVSPhere::solid(16, 32)); + explicit RedCube(Object3D* parent, SceneGraph::DrawableGroup3D* group): Object3D{parent}, SceneGraph::Drawable3D{*this, group} { + std::tie(_mesh, _vertices, _indices) = MeshTools::compile(Primitives::UVSphere::solid(16, 32)); } private: