summaryrefslogtreecommitdiffstats
path: root/thirdparty/basis_universal/transcoder/basisu_transcoder_internal.h
diff options
context:
space:
mode:
authorAlessandro Famà <me@alessandrofama.com>2024-01-09 00:22:22 +0100
committerAlessandro Famà <me@alessandrofama.com>2024-01-12 15:39:33 +0100
commit2cfdb27c81967236b7d41a1c740c0c7b366315a0 (patch)
tree98be81497a6f13236286f37d9120a9ec8e3de984 /thirdparty/basis_universal/transcoder/basisu_transcoder_internal.h
parent84e205b5a17bfe7ace96b78c410ec10aa52241d2 (diff)
downloadredot-engine-2cfdb27c81967236b7d41a1c740c0c7b366315a0.tar.gz
Fix missing icons for custom resources in EditorResourcePicker
The icons of custom resources created with `class_name` and annotated with `@icon` or GDExtensionen resources that have an icon specified in the .gdextension file are not appearing in the `EditorResourcePicker`. The problem is that the `EditorResourcePicker` retrieves the editor theme icon for the resource type and defaults to the `Object` icon if the type wasn't found. This will apply both to `class_name` and GDExtension resources. This solution addresses the issue by replacing the usage of `Control::get_editor_theme_icon` with `EditorNode::get_class_icon` to ensure the correct icon is retrieved for the resource. Additionally, this fix removes the `custom_resources` lookup above that call, as these resources, added through `EditorPlugin::add_custom_type`, were not being included in the allowed types within `_add_allowed_type` in the `EditorResoucePicker`. Currently, these particular custom resources are never displayed in the picker. The related issue is logged here: #75245. Fixes #86072.
Diffstat (limited to 'thirdparty/basis_universal/transcoder/basisu_transcoder_internal.h')
0 files changed, 0 insertions, 0 deletions