]> git.tdb.fi Git - libs/demoscene.git/blobdiff - source/demo.cpp
Allow stages to define actions
[libs/demoscene.git] / source / demo.cpp
index c15d5135c62800c6151eb229301a7ef1235c0720..6579b8cb7b3b6a905e053266177f4b15e5c2a4c0 100644 (file)
@@ -33,7 +33,9 @@ Demo::~Demo()
 void Demo::add_stage(const std::string &name, Stage &stage)
 {
        things[name] = &stage;
-       stage.add_things(things, name+".");
+       string prefix = name+".";
+       stage.add_things(things, prefix);
+       stage.define_actions(sequencer, prefix);
 }
 
 void Demo::set_fixed_framerate(float fps)