|
@@ -284,12 +284,12 @@ void CreateDialog::_configure_search_option_item(TreeItem *r_item, const String
|
|
|
bool can_instantiate = (p_type_category == TypeCategory::CPP_TYPE && ClassDB::can_instantiate(p_type)) ||
|
|
|
p_type_category == TypeCategory::OTHER_TYPE;
|
|
|
|
|
|
- if (!can_instantiate) {
|
|
|
- r_item->set_custom_color(0, search_options->get_theme_color(SNAME("disabled_font_color"), SNAME("Editor")));
|
|
|
+ if (can_instantiate && !ClassDB::is_virtual(p_type)) {
|
|
|
+ r_item->set_icon(0, EditorNode::get_singleton()->get_class_icon(p_type, icon_fallback));
|
|
|
+ } else {
|
|
|
r_item->set_icon(0, EditorNode::get_singleton()->get_class_icon(p_type, "NodeDisabled"));
|
|
|
+ r_item->set_custom_color(0, search_options->get_theme_color(SNAME("disabled_font_color"), SNAME("Editor")));
|
|
|
r_item->set_selectable(0, false);
|
|
|
- } else {
|
|
|
- r_item->set_icon(0, EditorNode::get_singleton()->get_class_icon(p_type, icon_fallback));
|
|
|
}
|
|
|
|
|
|
bool is_deprecated = EditorHelp::get_doc_data()->class_list[p_type].is_deprecated;
|