diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-08-12 14:55:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-12 14:55:15 +0200 |
commit | d7f3de8581c88d88595615db01f177161a032b26 (patch) | |
tree | fbb29752990919ee836128994a194a2370bfa3e0 /modules | |
parent | 5441aaf768d6dd4c3d8465e6b340ae38ddc7db1d (diff) | |
parent | 37a16fee05f2ee528c8556af9f4337a909e58de5 (diff) |
Merge pull request #31235 from akien-mga/clean-cache-after-export
Export: Remove temp files from cache after export
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gdscript/register_types.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gdscript/register_types.cpp b/modules/gdscript/register_types.cpp index b8a13ed91b..62117dcaf3 100644 --- a/modules/gdscript/register_types.cpp +++ b/modules/gdscript/register_types.cpp @@ -32,6 +32,7 @@ #include "core/io/file_access_encrypted.h" #include "core/io/resource_loader.h" +#include "core/os/dir_access.h" #include "core/os/file_access.h" #include "editor/gdscript_highlighter.h" #include "gdscript.h" @@ -117,6 +118,9 @@ public: file = FileAccess::get_file_as_array(tmp_path); add_file(p_path.get_basename() + ".gde", file, true); + // Clean up temporary file. + DirAccess::remove_file_or_error(tmp_path); + } else { add_file(p_path.get_basename() + ".gdc", file, true); |