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

Removal of new assets that are not saved #39

Merged
merged 4 commits into from
May 19, 2022
Merged

Conversation

JamesTKhan
Copy link
Owner

@JamesTKhan JamesTKhan commented May 18, 2022

This PR changes behavior for when a new terrain or water component is created. Instead of saving them on creation they are added to a newAssets lists. To improve clarity, dirtyAssets was renamed to modifiedAssets.

Behaviors:

  • If the project is saved then they will be saved.

  • If the project is exited correctly, they will not be saved in the scene and their asset files and meta files will be deleted.

  • If the project is switched to another project, they will not be saved in the scene and their asset files and meta files will be deleted.

  • If the application crashes while they are not saved, they will not be saved in the scene but the asset files will remain and have to be removed manually.

@JamesTKhan JamesTKhan self-assigned this May 18, 2022
@JamesTKhan JamesTKhan marked this pull request as ready for review May 18, 2022 04:48
@JamesTKhan JamesTKhan linked an issue May 18, 2022 that may be closed by this pull request
# Conflicts:
#	editor/src/main/com/mbrlabs/mundus/editor/assets/EditorAssetManager.kt
#	editor/src/main/com/mbrlabs/mundus/editor/ui/widgets/WaterWidget.kt
@JamesTKhan JamesTKhan merged commit 3468d25 into master May 19, 2022
@JamesTKhan JamesTKhan deleted the new_unsaved_assets branch May 19, 2022 04:23
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.

Saves new water component if I exit withtout saving
2 participants