diff options
author | Nils ANDRÉ-CHANG <nils.andre.chang@gmail.com> | 2019-07-13 20:47:37 +0100 |
---|---|---|
committer | Nils ANDRÉ-CHANG <nils.andre.chang@gmail.com> | 2019-07-15 17:16:57 +0100 |
commit | 9e3455cb1e1f36b1a9d1495aaaa7dd4cfadb0f3e (patch) | |
tree | 5bf5d285151ac9812a846e03a420f0ede48d6a09 /modules/gdscript | |
parent | 584ca0f156cec64c259382895e105cf27566a987 (diff) |
Show static functions inside classes in method list
Diffstat (limited to 'modules/gdscript')
-rw-r--r-- | modules/gdscript/gdscript_editor.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp index 78a1bfc99b..c4937f023b 100644 --- a/modules/gdscript/gdscript_editor.cpp +++ b/modules/gdscript/gdscript_editor.cpp @@ -161,6 +161,10 @@ bool GDScriptLanguage::validate(const String &p_script, int &r_line_error, int & funcs[cl->subclasses[i]->functions[j]->line] = String(cl->subclasses[i]->name) + "." + String(cl->subclasses[i]->functions[j]->name); } + for (int j = 0; j < cl->subclasses[i]->static_functions.size(); j++) { + + funcs[cl->subclasses[i]->static_functions[j]->line] = String(cl->subclasses[i]->name) + "." + String(cl->subclasses[i]->static_functions[j]->name); + } } for (Map<int, String>::Element *E = funcs.front(); E; E = E->next()) { |