diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-07-16 08:53:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-16 08:53:02 +0200 |
commit | 7b1ee28a03b5a4c869023aad0f2304166959ce57 (patch) | |
tree | b87245b53d4c550671d0566c22407df24144eebc | |
parent | 58d0fb12541b7f55cf2cbee19de453c771c76006 (diff) | |
parent | 9e3455cb1e1f36b1a9d1495aaaa7dd4cfadb0f3e (diff) |
Merge pull request #30567 from NilsIrl/static_func_inside_class
Show static functions inside classes in method list
-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()) { |