Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle deleting of temp model files #133

Merged
merged 3 commits into from
Feb 21, 2023
Merged

Handle deleting of temp model files #133

merged 3 commits into from
Feb 21, 2023

Conversation

JamesTKhan
Copy link
Owner

@JamesTKhan JamesTKhan commented Feb 20, 2023

When importing models, they are first moved into a temporary directory for fbx conversion, if needed. However, they are never deleted on import completion or if the import was cancelled. On my own machine the mundus temp directory had 1 gigabyte of temp data.

I have not added code to retroactively delete existing temp files, but this code will delete the temporary model files on either window close or import completion going forward.

Also adds code to 'reset' the import dialog, otherwise the import dialog when reopened shows the previous imported model.

Have not been able to test on Linux yet as my WSL is not working for some reason.

@JamesTKhan JamesTKhan linked an issue Feb 20, 2023 that may be closed by this pull request
@Dgzt
Copy link
Collaborator

Dgzt commented Feb 21, 2023

Have not been able to test on Linux yet as my WSL is not working for some reason.

I've tested this changes on Linux and work.

@JamesTKhan JamesTKhan merged commit 7f920df into master Feb 21, 2023
@JamesTKhan JamesTKhan deleted the delete-tmp-files branch February 21, 2023 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Temp folder for model imports is never cleared out
2 participants