From d34a50767ba99840e9953231e3acec2cde9057d0 Mon Sep 17 00:00:00 2001 From: Anders Ejlersen Date: Mon, 15 Dec 2025 19:59:34 +0100 Subject: [PATCH] Fixed issue, where fetching scenes would not initially check if the scene was valid before accessing the path --- CHANGELOG.md | 6 ++++++ Editor/Toolbar/Tools/ScenePickerObjects/ScenePickerList.cs | 2 +- package.json | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 79af572..6d58692 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/Editor/Toolbar/Tools/ScenePickerObjects/ScenePickerList.cs b/Editor/Toolbar/Tools/ScenePickerObjects/ScenePickerList.cs index f7ee3e7..bac13ec 100644 --- a/Editor/Toolbar/Tools/ScenePickerObjects/ScenePickerList.cs +++ b/Editor/Toolbar/Tools/ScenePickerObjects/ScenePickerList.cs @@ -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); diff --git a/package.json b/package.json index b67e867..1e14e95 100644 --- a/package.json +++ b/package.json @@ -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",