diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-07-26 17:09:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-26 17:09:41 +0200 |
commit | b2096ba53eb422ae2fbf8b49cf1f4806878127fb (patch) | |
tree | 4eae08b1d8ed1849e216040dddd5a4999a884907 /scene/3d/node_3d.cpp | |
parent | 94ff5ee535ff3f20685b06e2b959e3a52b2eabbe (diff) | |
parent | 2b9d9bc3644de19b291c16b2facc418f3d64d4fc (diff) |
Merge pull request #40670 from vnen/remove-multilevel-call
Remove multilevel calls
Diffstat (limited to 'scene/3d/node_3d.cpp')
-rw-r--r-- | scene/3d/node_3d.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/3d/node_3d.cpp b/scene/3d/node_3d.cpp index 73f17060df..bd9e4f5bde 100644 --- a/scene/3d/node_3d.cpp +++ b/scene/3d/node_3d.cpp @@ -174,7 +174,7 @@ void Node3D::_notification(int p_what) { ERR_FAIL_COND(!data.viewport); if (get_script_instance()) { - get_script_instance()->call_multilevel(SceneStringNames::get_singleton()->_enter_world, nullptr, 0); + get_script_instance()->call(SceneStringNames::get_singleton()->_enter_world); } #ifdef TOOLS_ENABLED if (Engine::get_singleton()->is_editor_hint() && get_tree()->is_node_being_edited(this)) { @@ -202,7 +202,7 @@ void Node3D::_notification(int p_what) { #endif if (get_script_instance()) { - get_script_instance()->call_multilevel(SceneStringNames::get_singleton()->_exit_world, nullptr, 0); + get_script_instance()->call(SceneStringNames::get_singleton()->_exit_world); } data.viewport = nullptr; |