From c4b410a64a6e845a3b121238744f40eab040d83b Mon Sep 17 00:00:00 2001 From: Cykyrios Date: Fri, 21 Oct 2022 13:06:53 +0200 Subject: [PATCH] Fix private properties appearing in class doc Property Descriptions --- editor/editor_help.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/editor/editor_help.cpp b/editor/editor_help.cpp index 51926807875..2183d7db7a8 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;