mirror of
https://github.com/originalnicodr/CinematicUnityExplorer.git
synced 2026-10-11 01:48:07 +08:00
Fix duplicate Scene hashcodes breaking PopulateSceneDropdown
This commit is contained in:
1 parent
36fc17aa43
commit
3d1fcbcd9f
1 file changed
+4
-1
@@ -114,7 +114,7 @@ namespace UnityExplorer.ObjectExplorer
|
||||
refreshRow.SetActive(!scene.IsValid());
|
||||
}
|
||||
|
||||
private void SceneHandler_OnLoadedScenesChanged(ReadOnlyCollection<Scene> loadedScenes)
|
||||
private void SceneHandler_OnLoadedScenesChanged(List<Scene> loadedScenes)
|
||||
{
|
||||
PopulateSceneDropdown();
|
||||
}
|
||||
@@ -126,6 +126,9 @@ namespace UnityExplorer.ObjectExplorer
|
||||
|
||||
foreach (var scene in SceneHandler.LoadedScenes)
|
||||
{
|
||||
if (sceneToDropdownOption.ContainsKey(scene))
|
||||
continue;
|
||||
|
||||
string name = scene.name?.Trim();
|
||||
|
||||
if (!scene.IsValid())
|
||||
|
||||
Reference in new issue
Block a user