mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 19:42:43 +00:00
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
This commit is contained in:
commit
3882ed5734
@ -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";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user