diff options
Diffstat (limited to 'editor/animation_track_editor_plugins.cpp')
| -rw-r--r-- | editor/animation_track_editor_plugins.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/editor/animation_track_editor_plugins.cpp b/editor/animation_track_editor_plugins.cpp index 91a0f213ec..390b722b7b 100644 --- a/editor/animation_track_editor_plugins.cpp +++ b/editor/animation_track_editor_plugins.cpp @@ -973,8 +973,7 @@ bool AnimationTrackEditTypeAudio::can_drop_data(const Point2 &p_point, const Var Vector<String> files = drag_data["files"]; if (files.size() == 1) { - String file = files[0]; - Ref<AudioStream> res = ResourceLoader::load(file); + Ref<AudioStream> res = ResourceLoader::load(files[0]); if (res.is_valid()) { return true; } @@ -995,8 +994,7 @@ void AnimationTrackEditTypeAudio::drop_data(const Point2 &p_point, const Variant Vector<String> files = drag_data["files"]; if (files.size() == 1) { - String file = files[0]; - stream = ResourceLoader::load(file); + stream = ResourceLoader::load(files[0]); } } |
