summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorYuri Rubinsky <chaosus89@gmail.com>2022-12-18 11:31:28 +0300
committerYuri Rubinsky <chaosus89@gmail.com>2022-12-18 11:31:28 +0300
commit0fcf6a1c0c2c50e08e4f6e73ef8c6fdbaf092189 (patch)
tree77b9c61a1b517e40979745224574f66e5a72cee6 /editor
parent0bb94df247a0a0c22333e2e99744fc3fd184601a (diff)
Prevent showing AudioStream preview for non-WAV types
Diffstat (limited to 'editor')
-rw-r--r--editor/plugins/audio_stream_editor_plugin.cpp3
1 files changed, 2 insertions, 1 deletions
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<AudioStream>(p_object) != nullptr;
+ return Object::cast_to<AudioStreamWAV>(p_object) != nullptr;
}
void EditorInspectorPluginAudioStream::parse_begin(Object *p_object) {