summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Rubinsky <chaosus89@gmail.com>2022-12-18 21:11:00 +0300
committerGitHub <noreply@github.com>2022-12-18 21:11:00 +0300
commit62a50827601c479d078053b1b4c83d3b2da13236 (patch)
treef84a1add5b767aaa82621c1f048f0a16eabbfc5f
parent02f24eb3f2845405d070402d10ef30257a6c14d4 (diff)
parent0fcf6a1c0c2c50e08e4f6e73ef8c6fdbaf092189 (diff)
Merge pull request #70250 from Chaosus/fix_audio_stream_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) {