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; }