From 547f03b6d75272902fa3811792fe0b03ff7ed5c3 Mon Sep 17 00:00:00 2001 From: Danil Alexeev Date: Sat, 3 Feb 2024 23:30:45 +0300 Subject: [PATCH] Editor: Fix `_parse_category()` is not called for custom categories --- editor/editor_inspector.cpp | 74 ++++++++++++++++++------------------- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp index 0711bbe84ede..b97729db7b1d 100644 --- a/editor/editor_inspector.cpp +++ b/editor/editor_inspector.cpp @@ -2816,53 +2816,53 @@ void EditorInspector::update_tree() { // `hint_script` should contain a native class name or a script path. // Otherwise the category was probably added via `@export_category` or `_get_property_list()`. + // Do not add an icon, do not change the current class (`doc_name`) for custom categories. if (p.hint_string.is_empty()) { category->label = p.name; category->set_tooltip_text(p.name); - continue; // Do not add an icon, do not change the current class (`doc_name`). - } + } else { + String type = p.name; + String label = p.name; + doc_name = p.name; - String type = p.name; - String label = p.name; - doc_name = p.name; - - // Use category's owner script to update some of its information. - if (!EditorNode::get_editor_data().is_type_recognized(type) && p.hint_string.length() && ResourceLoader::exists(p.hint_string)) { - Ref