Browse Source

Fix private properties appearing in class doc Property Descriptions

Cykyrios 2 years ago
parent
commit
c4b410a64a
1 changed files with 4 additions and 0 deletions
  1. 4 0
      editor/editor_help.cpp

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