mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-09-20 21:46:02 +08:00
Fix duplicate Scene hashcodes breaking PopulateSceneDropdown
This commit is contained in:
@ -114,7 +114,7 @@ namespace UnityExplorer.ObjectExplorer
|
|||||||
refreshRow.SetActive(!scene.IsValid());
|
refreshRow.SetActive(!scene.IsValid());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SceneHandler_OnLoadedScenesChanged(ReadOnlyCollection<Scene> loadedScenes)
|
private void SceneHandler_OnLoadedScenesChanged(List<Scene> loadedScenes)
|
||||||
{
|
{
|
||||||
PopulateSceneDropdown();
|
PopulateSceneDropdown();
|
||||||
}
|
}
|
||||||
@ -126,6 +126,9 @@ namespace UnityExplorer.ObjectExplorer
|
|||||||
|
|
||||||
foreach (var scene in SceneHandler.LoadedScenes)
|
foreach (var scene in SceneHandler.LoadedScenes)
|
||||||
{
|
{
|
||||||
|
if (sceneToDropdownOption.ContainsKey(scene))
|
||||||
|
continue;
|
||||||
|
|
||||||
string name = scene.name?.Trim();
|
string name = scene.name?.Trim();
|
||||||
|
|
||||||
if (!scene.IsValid())
|
if (!scene.IsValid())
|
||||||
|
Reference in New Issue
Block a user