generated from vrchat-community/template-package
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: File -> Save As breaks in some cases (#435)
In some cases, the NDMF preview scene could become the "active scene", which means the File -> Save As menu item would attempt to save as that scene. This would then result in the sceneSaving hook clearing the scene and an empty scene file being created. Avoid this by always ensuring something other than the preview scene is selected; also, close the preview scene (and create a replacement) if it's the last scene left.
- Loading branch information
1 parent
3af715a
commit bf38cca
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters