소스 검색

Merge pull request #98717 from nikitalita/fix-save-to-wav-caps

Fix `AudioStreamWAV::save_to_wav` adding extra '.wav' to file if existing ext is not lower case
Thaddeus Crews 10 달 전
부모
커밋
3882ed5734
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      scene/resources/audio_stream_wav.cpp

+ 1 - 1
scene/resources/audio_stream_wav.cpp

@@ -624,7 +624,7 @@ Error AudioStreamWAV::save_to_wav(const String &p_path) {
 	}
 
 	String file_path = p_path;
-	if (!(file_path.substr(file_path.length() - 4, 4) == ".wav")) {
+	if (file_path.substr(file_path.length() - 4, 4).to_lower() != ".wav") {
 		file_path += ".wav";
 	}