summaryrefslogtreecommitdiffstats
path: root/editor/editor_help.cpp
diff options
context:
space:
mode:
authorCykyrios <cykyrios@gmail.com>2022-10-21 13:06:53 +0200
committerCykyrios <cykyrios@gmail.com>2022-10-21 13:08:08 +0200
commitc4b410a64a6e845a3b121238744f40eab040d83b (patch)
treebbab426279552326b2497f188f25697e41c4bbb6 /editor/editor_help.cpp
parent72b845b28773dd40adf6f55b226fb732910cbf14 (diff)
downloadredot-engine-c4b410a64a6e845a3b121238744f40eab040d83b.tar.gz
Fix private properties appearing in class doc Property Descriptions
Diffstat (limited to 'editor/editor_help.cpp')
-rw-r--r--editor/editor_help.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/editor_help.cpp b/editor/editor_help.cpp
index 5192680787..2183d7db7a 100644
--- a/editor/editor_help.cpp
+++ b/editor/editor_help.cpp
@@ -1489,6 +1489,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;