diff options
| author | Mariano Suligoy | 2017-06-20 17:13:17 -0300 |
|---|---|---|
| committer | Rémi Verschelde | 2017-06-25 14:20:47 +0200 |
| commit | bcbd2653dee2b180a690bd4c8d5f63f6653d7b46 (patch) | |
| tree | 60dcd711b7820c86eeb1bf11c497b6a5ae7c3ce5 /modules/gdscript/gd_editor.cpp | |
| parent | bcb8cc2faaacc5930c578883661ed43bca45b8c4 (diff) | |
| download | godot-bcbd2653dee2b180a690bd4c8d5f63f6653d7b46.tar.gz godot-bcbd2653dee2b180a690bd4c8d5f63f6653d7b46.tar.zst godot-bcbd2653dee2b180a690bd4c8d5f63f6653d7b46.zip | |
GdScript: Add signal autocompletion to emit_signal function
(cherry picked from commit 7fe750583e17f4e40cc8dda99a59205d22f686f1)
Diffstat (limited to 'modules/gdscript/gd_editor.cpp')
| -rw-r--r-- | modules/gdscript/gd_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gd_editor.cpp b/modules/gdscript/gd_editor.cpp index 68f094717..e8d1d9a66 100644 --- a/modules/gdscript/gd_editor.cpp +++ b/modules/gdscript/gd_editor.cpp @@ -1587,7 +1587,7 @@ static void _find_type_arguments(const GDParser::Node *p_node, int p_line, const } else { //regular method - if (p_method.operator String() == "connect") { + if (p_method.operator String() == "connect" || (p_method.operator String() == "emit_signal" && p_argidx == 0)) { if (p_argidx == 0) { List<MethodInfo> sigs; |
