]> git.tdb.fi Git - libs/demoscene.git/blobdiff - source/demo.cpp
Make it possible for Stages to add things to the Demo
[libs/demoscene.git] / source / demo.cpp
index 4cd66bd2a036d803988c18d6f195adb3bd376b60..c5456853c55495fc41665b2813af2abfa0bb8f22 100644 (file)
@@ -31,7 +31,7 @@ Demo::~Demo()
 void Demo::add_stage(const std::string &name, Stage &stage)
 {
        things[name] = &stage;
-       things[name+".camera"] = static_cast<GL::Placeable *>(&stage.get_camera());
+       stage.add_things(things, name+".");
 }
 
 void Demo::set_fixed_framerate(float fps)