mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Rename CONNECT_ONESHOT TO CONNECT_ONE_SHOT
For consistency. Every other exposed `one_shot` is spaced out like this.
This commit is contained in:
parent
0c4d578bdf
commit
dd26ecdd31
18 changed files with 27 additions and 26 deletions
|
@ -2163,7 +2163,7 @@ Variant GDScriptFunction::call(GDScriptInstance *p_instance, const Variant **p_a
|
|||
OPCODE(OPCODE_AWAIT) {
|
||||
CHECK_SPACE(2);
|
||||
|
||||
// Do the oneshot connect.
|
||||
// Do the one-shot connect.
|
||||
GET_INSTRUCTION_ARG(argobj, 0);
|
||||
|
||||
Signal sig;
|
||||
|
@ -2234,7 +2234,7 @@ Variant GDScriptFunction::call(GDScriptInstance *p_instance, const Variant **p_a
|
|||
|
||||
retvalue = gdfs;
|
||||
|
||||
Error err = sig.connect(Callable(gdfs.ptr(), "_signal_callback").bind(retvalue), Object::CONNECT_ONESHOT);
|
||||
Error err = sig.connect(Callable(gdfs.ptr(), "_signal_callback").bind(retvalue), Object::CONNECT_ONE_SHOT);
|
||||
if (err != OK) {
|
||||
err_text = "Error connecting to signal: " + sig.get_name() + " during await.";
|
||||
OPCODE_BREAK;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue