Merge pull request #113398 from Eshaan-byte/fix-moviewriter-disk-space-check

Fix MovieWriter checking wrong directory for disk space
This commit is contained in:
Rémi Verschelde 2025-12-02 14:17:10 +01:00
commit 8cee5355ff
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -114,7 +114,7 @@ void MovieWriter::begin(const Size2i &p_movie_size, uint32_t p_fps, const String
// Check for available disk space and warn the user if needed.
Ref<DirAccess> dir = DirAccess::create(DirAccess::ACCESS_FILESYSTEM);
String path = p_base_path.get_basename();
String path = p_base_path.get_base_dir();
if (path.is_relative_path()) {
path = "res://" + path;
}