-/* $Id$
-
-This file is part of libmspgl
-Copyright © 2007-2011 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#include <msp/datafile/collection.h>
#include <msp/strings/formatter.h>
#include "except.h"
meshes[i].keep();
}
+const Mesh *Object::get_mesh(unsigned i) const
+{
+ if(i>=meshes.size())
+ return 0;
+
+ return meshes[i].get();
+}
+
void Object::set_technique(const Technique *t)
{
technique = t;