Fixed issue, where fetching scenes would not initially check if the scene was valid before accessing the path
This commit is contained in:
parent
2bcd3c63af
commit
d34a50767b
|
|
@ -1,6 +1,12 @@
|
|||
# Change Log
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
## [2.0.1] - 2025-12-15
|
||||
|
||||
### Fixed
|
||||
- Fixed issue, where fetching scenes would not initially check if the scene was valid before accessing the path
|
||||
|
||||
|
||||
|
||||
## [2.0.0] - 2025-12-06
|
||||
- Navigation tools upgraded to use the new `MainToolbarElement` API
|
||||
|
|
|
|||
|
|
@ -248,7 +248,7 @@ namespace Module.NavigationTool.Editor.Toolbar
|
|||
{
|
||||
Scene scene = SceneManager.GetSceneAt(i);
|
||||
|
||||
if (string.IsNullOrEmpty(scene.path))
|
||||
if (!scene.IsValid() || string.IsNullOrEmpty(scene.path))
|
||||
continue;
|
||||
|
||||
int index = IndexOfPath(scenes, scene.path, false);
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "com.module.navigationtool",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.1",
|
||||
"displayName": "Module.NavigationTool",
|
||||
"description": "Support for navigation tools, like favorites, history and toolbars",
|
||||
"unity": "2019.2",
|
||||
|
|
|
|||
Loading…
Reference in a new issue