diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | scene/main/scene_main_loop.cpp | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore index 2b3dd45c6c..a5b45a1ae1 100644 --- a/.gitignore +++ b/.gitignore @@ -280,3 +280,4 @@ cscope.files cscope.out cscope.in.out cscope.po.out +godot.creator.user.wd3476 diff --git a/scene/main/scene_main_loop.cpp b/scene/main/scene_main_loop.cpp index 4113fd1998..584b40337f 100644 --- a/scene/main/scene_main_loop.cpp +++ b/scene/main/scene_main_loop.cpp @@ -1094,11 +1094,11 @@ void SceneTree::_bind_methods() { ObjectTypeDB::bind_native_method(METHOD_FLAGS_DEFAULT,"call_group",&SceneTree::_call_group,mi,defargs); - ObjectTypeDB::bind_method(_MD("set_current_scene","child_node"),&SceneTree::set_current_scene); - ObjectTypeDB::bind_method(_MD("get_current_scene"),&SceneTree::get_current_scene); + ObjectTypeDB::bind_method(_MD("set_current_scene","child_node:Node"),&SceneTree::set_current_scene); + ObjectTypeDB::bind_method(_MD("get_current_scene:Node"),&SceneTree::get_current_scene); ObjectTypeDB::bind_method(_MD("change_scene","path"),&SceneTree::change_scene); - ObjectTypeDB::bind_method(_MD("change_scene_to","packed_scene"),&SceneTree::change_scene_to); + ObjectTypeDB::bind_method(_MD("change_scene_to","packed_scene:PackedScene"),&SceneTree::change_scene_to); ObjectTypeDB::bind_method(_MD("reload_current_scene"),&SceneTree::reload_current_scene); |