diff options
| author | Lars Kokemohr | 2018-03-14 16:42:13 +0100 |
|---|---|---|
| committer | Hein-Pieter van Braam | 2018-04-14 20:42:44 +0200 |
| commit | 30b5265417f1e1be29652f056a848d9083ebec25 (patch) | |
| tree | 42c28850ca15fb7fe1118fd6b89f44803afe9a4e /modules/gdscript/gdscript_function.h | |
| parent | 2f53325beda6531eff42460bd95881bd6f8e392b (diff) | |
| download | godot-30b5265417f1e1be29652f056a848d9083ebec25.tar.gz godot-30b5265417f1e1be29652f056a848d9083ebec25.tar.zst godot-30b5265417f1e1be29652f056a848d9083ebec25.zip | |
completed-signal is emitted by all GDScriptFunctionStates of a coroutine now, allowing to yield for completion of a function with more than one yield inside.
(cherry picked from commit 3dfef37628a3b17cca4ce5370631fb572376ed98)
Diffstat (limited to 'modules/gdscript/gdscript_function.h')
| -rw-r--r-- | modules/gdscript/gdscript_function.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_function.h b/modules/gdscript/gdscript_function.h index 9310444c7..dff4bdfaf 100644 --- a/modules/gdscript/gdscript_function.h +++ b/modules/gdscript/gdscript_function.h @@ -234,6 +234,7 @@ class GDScriptFunctionState : public Reference { GDScriptFunction *function; GDScriptFunction::CallState state; Variant _signal_callback(const Variant **p_args, int p_argcount, Variant::CallError &r_error); + Ref<GDScriptFunctionState> previous_state; protected: static void _bind_methods(); |
