namespace R2C2 {
-VehicleType3D::VehicleType3D(const Catalogue3D &c, const VehicleType &t):
+VehicleType3D::VehicleType3D(Catalogue3D &c, const VehicleType &t):
catalogue(c),
type(t),
body_object(0),
}
}
else
- {
- ptr = new GL::Object;
- DataFile::load(*ptr, name);
- }
+ return catalogue.get<GL::Object>(name);
}
return ptr;
}