summaryrefslogtreecommitdiffstats
path: root/scene/resources
diff options
context:
space:
mode:
authorThaddeus Crews <repiteo@outlook.com>2024-11-10 12:12:29 -0600
committerThaddeus Crews <repiteo@outlook.com>2024-11-10 12:12:29 -0600
commit3882ed5734e74be6bbcfd399e12b1b2ba4c612c0 (patch)
tree1b0ef309ea48e1bcdc4d1f9284f15f605bb64b34 /scene/resources
parentfbded4e0d727481c015a95f9b8c20855fe128b53 (diff)
parent08db8edbffb829d4a7547e2e2de9c1167e1c6bd6 (diff)
downloadredot-engine-3882ed5734e74be6bbcfd399e12b1b2ba4c612c0.tar.gz
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
Diffstat (limited to 'scene/resources')
-rw-r--r--scene/resources/audio_stream_wav.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/audio_stream_wav.cpp b/scene/resources/audio_stream_wav.cpp
index f9787dde2e..539001bf25 100644
--- a/scene/resources/audio_stream_wav.cpp
+++ b/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";
}