mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2024-12-23 01:59:40 +08:00
Fix JumpToTransform exception with HideAndDontSave
This commit is contained in:
parent
409a468b55
commit
8f1f6cd0b2
@ -79,7 +79,11 @@ namespace UnityExplorer.ObjectExplorer
|
||||
var go = transform.gameObject;
|
||||
if (SceneHandler.SelectedScene != go.scene)
|
||||
{
|
||||
int idx = sceneDropdown.options.IndexOf(sceneToDropdownOption[go.scene]);
|
||||
int idx;
|
||||
if (go.scene == default || go.scene.handle == -1)
|
||||
idx = sceneDropdown.options.Count - 1;
|
||||
else
|
||||
idx = sceneDropdown.options.IndexOf(sceneToDropdownOption[go.scene]);
|
||||
sceneDropdown.value = idx;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user