#include <msp/datafile/collection.h>
-#include "animatedobject.h"
#include "camera.h"
+#include "objectinstance.h"
#include "orderedscene.h"
#include "renderer.h"
#include "scene.h"
void Scene::Loader::object_tagged(const string &n, const string &t)
{
- RefPtr<AnimatedObject> anob = new AnimatedObject(get_collection().get<GL::Object>(n));
- load_sub(*anob);
- obj.add(*anob);
+ RefPtr<ObjectInstance> inst = new ObjectInstance(get_collection().get<GL::Object>(n));
+ load_sub(*inst);
+ obj.add(*inst);
if(content && !t.empty())
- (*content)[t] = anob.get();
- obj.owned_data.push_back(anob.release());
+ (*content)[t] = inst.get();
+ obj.owned_data.push_back(inst.release());
}