Fix regression with enum descriptions now showing up in documentation.

This commit is contained in:
ocean (they/them) 2023-07-02 10:55:47 -04:00
parent 46424488ed
commit d48636c3bf
2 changed files with 3 additions and 2 deletions

View file

@ -1367,7 +1367,7 @@ void EditorHelp::_update_doc() {
class_desc->add_newline();
// Enum description.
if (e != "@unnamed_enums" && cd.enums.has(e)) {
if (e != "@unnamed_enums" && cd.enums.has(e) && !cd.enums[e].strip_edges().is_empty()) {
class_desc->push_color(theme_cache.text_color);
_push_normal_font();
class_desc->push_indent(1);