summaryrefslogtreecommitdiffstats
path: root/editor/import/resource_importer_wav.cpp
diff options
context:
space:
mode:
authorNinni Pipping <over999ships@gmail.com>2023-03-23 16:19:20 +0100
committerNinni Pipping <over999ships@gmail.com>2023-03-23 16:19:20 +0100
commitff127ba57e81a9c4679b2cb036b20e37d0954e0b (patch)
tree96be1470272b5a69b2430818aeab229364f8c0be /editor/import/resource_importer_wav.cpp
parent0291fcd7b66bcb315a49c44de8031e5596de4216 (diff)
downloadredot-engine-ff127ba57e81a9c4679b2cb036b20e37d0954e0b.tar.gz
Fix trim when importing WAV
Diffstat (limited to 'editor/import/resource_importer_wav.cpp')
-rw-r--r--editor/import/resource_importer_wav.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/import/resource_importer_wav.cpp b/editor/import/resource_importer_wav.cpp
index 6d54c08031..f3cb5bda32 100644
--- a/editor/import/resource_importer_wav.cpp
+++ b/editor/import/resource_importer_wav.cpp
@@ -386,7 +386,7 @@ Error ResourceImporterWAV::import(const String &p_source_file, const String &p_s
bool trim = p_options["edit/trim"];
- if (trim && (loop_mode != AudioStreamWAV::LOOP_DISABLED) && format_channels > 0) {
+ if (trim && (loop_mode == AudioStreamWAV::LOOP_DISABLED) && format_channels > 0) {
int first = 0;
int last = (frames / format_channels) - 1;
bool found = false;