From 4af86e0e25209b4ba3b84fe850ded580b72afe7c Mon Sep 17 00:00:00 2001
From: Sinai <49360850+sinai-dev@users.noreply.github.com>
Date: Mon, 11 Apr 2022 17:14:20 +1000
Subject: [PATCH] Fix InspectingAssetScene returning incorrect value
---
src/ObjectExplorer/SceneHandler.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ObjectExplorer/SceneHandler.cs b/src/ObjectExplorer/SceneHandler.cs
index 3269197..982971c 100644
--- a/src/ObjectExplorer/SceneHandler.cs
+++ b/src/ObjectExplorer/SceneHandler.cs
@@ -45,7 +45,7 @@ namespace UnityExplorer.ObjectExplorer
internal static int DefaultSceneCount => 1 + (DontDestroyExists ? 1 : 0);
/// Whether or not we are currently inspecting the "HideAndDontSave" asset scene.
- public static bool InspectingAssetScene => SelectedScene.HasValue && SelectedScene.Value == default;
+ public static bool InspectingAssetScene => SelectedScene.HasValue && SelectedScene.Value.handle == -1;
/// Whether or not we successfuly retrieved the names of the scenes in the build settings.
public static bool WasAbleToGetScenesInBuild { get; private set; }