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
3 changed files with 8 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue