mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
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:
commit
8cee5355ff
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue