2
0
Fork 0

Fix trim when importing WAV

(cherry picked from commit ff127ba57e)
4.0
Ninni Pipping 2023-03-23 16:19:20 +07:00 committed by Yuri Sizov
parent 33618f25fd
commit c683fa9971
1 changed files with 1 additions and 1 deletions

@ -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;