From 0fcf6a1c0c2c50e08e4f6e73ef8c6fdbaf092189 Mon Sep 17 00:00:00 2001 From: Yuri Rubinsky Date: Sun, 18 Dec 2022 11:31:28 +0300 Subject: Prevent showing AudioStream preview for non-WAV types --- editor/plugins/audio_stream_editor_plugin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'editor') diff --git a/editor/plugins/audio_stream_editor_plugin.cpp b/editor/plugins/audio_stream_editor_plugin.cpp index 719ae09f47..60d949cdf0 100644 --- a/editor/plugins/audio_stream_editor_plugin.cpp +++ b/editor/plugins/audio_stream_editor_plugin.cpp @@ -34,6 +34,7 @@ #include "editor/audio_stream_preview.h" #include "editor/editor_scale.h" #include "editor/editor_settings.h" +#include "scene/resources/audio_stream_wav.h" // AudioStreamEditor @@ -258,7 +259,7 @@ AudioStreamEditor::AudioStreamEditor() { // EditorInspectorPluginAudioStream bool EditorInspectorPluginAudioStream::can_handle(Object *p_object) { - return Object::cast_to(p_object) != nullptr; + return Object::cast_to(p_object) != nullptr; } void EditorInspectorPluginAudioStream::parse_begin(Object *p_object) { -- cgit v1.2.3