string obj_name = tt.get_object();
if(!obj_name.empty())
{
- object = catalogue.get<GL::Object>(obj_name);
+ object = &catalogue.get<GL::Object>(obj_name);
const GL::Mesh *m = object->get_mesh();
const GL::VertexArray &vertices = m->get_vertices();
int vertex_offs = vertices.get_format().offset(GL::VERTEX2);
object = new GL::Object;
object->set_mesh(mesh);
- object->set_technique(catalogue.get<GL::Technique>(cat.get_track_technique()));
+ object->set_technique(&catalogue.get<GL::Technique>(cat.get_track_technique()));
}
unsigned paths = tt.get_paths();