Browse Source

Merge pull request #67707 from Cykyrios/hide-private-prop-description-in-classdoc

Fix private properties appearing in custom class doc Property Descriptions
Rémi Verschelde 2 years ago
parent
commit
bfe43f69b8
1 changed files with 4 additions and 0 deletions
  1. 4 0
      editor/editor_help.cpp

+ 4 - 0
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;