diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-12-06 00:55:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-06 00:55:28 +0100 |
commit | 93b107ac93db82a2790d6ebf5d0893dd72eb670a (patch) | |
tree | e199803009bff5980c5fbe5a5a7e1a45b6884f2e /modules | |
parent | 91fd6374eb313aa31008a6b90f067644ede3e02f (diff) | |
parent | 1b348b3c17f76cc7af1a53b648f42e76e9102b26 (diff) |
Merge pull request #44132 from aaronfranke/no-connect-compat
Remove connect *_compat methods
Diffstat (limited to 'modules')
-rw-r--r-- | modules/visual_script/visual_script.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/visual_script/visual_script.cpp b/modules/visual_script/visual_script.cpp index b10d4523f2..f9ef184579 100644 --- a/modules/visual_script/visual_script.cpp +++ b/modules/visual_script/visual_script.cpp @@ -2367,7 +2367,7 @@ void VisualScriptFunctionState::connect_to_signal(Object *p_obj, const String &p binds.push_back(p_binds[i]); } binds.push_back(Ref<VisualScriptFunctionState>(this)); //add myself on the back to avoid dying from unreferencing - p_obj->connect_compat(p_signal, this, "_signal_callback", binds, CONNECT_ONESHOT); + p_obj->connect(p_signal, Callable(this, "_signal_callback"), binds, CONNECT_ONESHOT); } bool VisualScriptFunctionState::is_valid() const { |