diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-05-17 16:33:35 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-05-17 16:33:35 -0300 |
commit | b6b346e8aeaa4b31f4a89b0711e48a08fa802cf5 (patch) | |
tree | 717c932781cff4a0f5da6cd39019ddf33f8679d2 /main/main.cpp | |
parent | 2696ecb769a5469bd6fabe2efe9a5914d8cd8a6f (diff) |
added a built-in scene changer API, closes #1928
Diffstat (limited to 'main/main.cpp')
-rw-r--r-- | main/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/main.cpp b/main/main.cpp index 1469ce4618..f826b36212 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -1248,7 +1248,8 @@ bool Main::start() { ERR_EXPLAIN("Failed loading scene: "+local_game_path); ERR_FAIL_COND_V(!scene,false) - sml->get_root()->add_child(scene); + //sml->get_root()->add_child(scene); + sml->add_current_scene(scene); String iconpath = GLOBAL_DEF("application/icon","Variant()"""); if (iconpath!="") { |