1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

added a built-in scene changer API, closes #1928

This commit is contained in:
Juan Linietsky
2015-05-17 16:33:35 -03:00
parent 2696ecb769
commit b6b346e8ae
8 changed files with 128 additions and 4 deletions

View File

@@ -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!="") {