diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-01-17 11:38:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-17 11:38:38 +0100 |
commit | 0aefec24548edbb96e4991ede4465473e0c225e1 (patch) | |
tree | 96b5b528121e64f11f42481e5f5890acf16fd54e /editor/editor_help.cpp | |
parent | 4357be1072c18361314913b423bfeebcb0d13f4b (diff) | |
parent | 1d9e19c7fba990aaea2fda3f8dccd9594f48b48c (diff) |
Merge pull request #35229 from lakshay-angrish/35090-methods-in-xml-not-in-editor
show parametric setters and getters in editor help
Diffstat (limited to 'editor/editor_help.cpp')
-rw-r--r-- | editor/editor_help.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/editor/editor_help.cpp b/editor/editor_help.cpp index 1c97fe9f8e..d3c50423b7 100644 --- a/editor/editor_help.cpp +++ b/editor/editor_help.cpp @@ -603,8 +603,11 @@ void EditorHelp::_update_doc() { Vector<DocData::MethodDoc> methods; for (int i = 0; i < cd.methods.size(); i++) { - if (skip_methods.has(cd.methods[i].name)) - continue; + if (skip_methods.has(cd.methods[i].name)) { + if (cd.methods[i].arguments.size() == 0 /* getter */ || (cd.methods[i].arguments.size() == 1 && cd.methods[i].return_type == "void" /* setter */)) { + continue; + } + } methods.push_back(cd.methods[i]); } |