+
+ // Deprecated alias, will be removed
+ add("lod_mesh", &Loader::mesh_lod);
+}
+
+void Object::Loader::mesh_inline()
+{
+ RefPtr<Mesh> msh = new Mesh;
+ load_sub(*msh);
+ obj.meshes.front() = msh;
+}
+
+void Object::Loader::mesh_inline_lod(unsigned l)
+{
+ if(l>obj.meshes.size())
+ throw invalid_argument("Object::Loader::mesh_inline_lod");
+
+ RefPtr<Mesh> msh = new Mesh;
+ load_sub(*msh);
+ if(l==obj.meshes.size())
+ obj.meshes.push_back(msh);
+ else
+ obj.meshes[l] = msh;
+}
+
+void Object::Loader::mesh(const std::string &n)
+{
+ obj.set_mesh(&get_collection().get<Mesh>(n));