Merge pull request #120181 from bruvzg/astr_name

Fix empty `AudioStream` name in the resource picker.
This commit is contained in:
Thaddeus Crews
2026-06-18 13:15:24 -05:00
+3 -1
View File
@@ -1763,8 +1763,10 @@ void EditorAudioStreamPicker::_preview_draw() {
text = audio_stream->get_name();
} else if (audio_stream->get_path().is_resource_file()) {
text = audio_stream->get_path().get_file();
} else {
} else if (audio_stream->get_class() != "AudioStream") {
text = audio_stream->get_class().replace_first("AudioStream", "");
} else {
text = audio_stream->get_class();
}
stream_preview_rect->draw_texture(icon, Point2i(EDSCALE * 4, rect.position.y + (rect.size.height - icon->get_height()) / 2), icon_modulate);