diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-14 11:03:50 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-14 11:03:50 +0100 |
commit | bfe43f69b85f856b47ad6781b3e924fb057cfb0a (patch) | |
tree | a64a7fbef63d376f34711f7c50bce2de4df08af0 | |
parent | 1f18e16a32223cfead38ff935f876ce8cb7d59c7 (diff) | |
parent | c4b410a64a6e845a3b121238744f40eab040d83b (diff) |
Merge pull request #67707 from Cykyrios/hide-private-prop-description-in-classdoc
Fix private properties appearing in custom class doc Property Descriptions
-rw-r--r-- | editor/editor_help.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/editor_help.cpp b/editor/editor_help.cpp index 0c7ea33b54..acbc3ce0dc 100644 --- a/editor/editor_help.cpp +++ b/editor/editor_help.cpp @@ -1540,6 +1540,10 @@ void EditorHelp::_update_doc() { if (cd.properties[i].overridden) { continue; } + // Ignore undocumented private. + if (cd.properties[i].name.begins_with("_") && cd.properties[i].description.strip_edges().is_empty()) { + continue; + } property_line[cd.properties[i].name] = class_desc->get_paragraph_count() - 2; |