diff --git a/CHANGELOG.md b/CHANGELOG.md index aa4bf21..b457c0f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ All notable changes to this project will be documented in this file. +## [1.10.2] - 2024-11-25 + +### Fixed +- Fixed issue, where scene picker would not prompt about unsaved scene changes + ## [1.10.1] - 2024-11-25 ### Fixed diff --git a/Editor/Toolbar/Tools/ToolScenePicker.cs b/Editor/Toolbar/Tools/ToolScenePicker.cs index d3f441d..6fbeb93 100644 --- a/Editor/Toolbar/Tools/ToolScenePicker.cs +++ b/Editor/Toolbar/Tools/ToolScenePicker.cs @@ -120,6 +120,9 @@ namespace Module.NavigationTool.Editor.Toolbar { try { + if (!EditorSceneManager.SaveCurrentModifiedScenesIfUserWantsTo()) + return; + ScenePickerList.SceneElement scenes = SCENE_LIST.scenes[index]; bool isScenePickerSetAsAdditive = ToolbarScenePickerSettings.IsScenePickerSetAsAdditive; diff --git a/package.json b/package.json index a3c5dc5..b4b3243 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.module.navigationtool", - "version": "1.10.1", + "version": "1.10.2", "displayName": "Module.NavigationTool", "description": "Support for navigation tools, like favorites, history and toolbars", "unity": "2019.2",