浏览代码

Merge pull request #78048 from AThousandShips/wav_trim_3_x

[3.x] Fix trim when importing WAV
Rémi Verschelde 2 年之前
父节点
当前提交
b3396b093b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      editor/import/resource_importer_wav.cpp

+ 1 - 1
editor/import/resource_importer_wav.cpp

@@ -404,7 +404,7 @@ Error ResourceImporterWAV::import(const String &p_source_file, const String &p_s
 
 	bool trim = p_options["edit/trim"];
 
-	if (trim && (loop_mode != AudioStreamSample::LOOP_DISABLED) && format_channels > 0) {
+	if (trim && (loop_mode == AudioStreamSample::LOOP_DISABLED) && format_channels > 0) {
 		int first = 0;
 		int last = (frames / format_channels) - 1;
 		bool found = false;