Skip to content

Commit 23111ec

Browse files
authored
Update SceneSerializationUtility.cs
1 parent d3b4a17 commit 23111ec

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Assets/Editor Toolbox/Runtime/Serialization/SceneSerializationUtility.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ private static void RefreshCache()
4343
var buildIndex = -1;
4444
foreach (var scene in EditorBuildSettings.scenes)
4545
{
46-
buildIndex++;
47-
4846
if (string.IsNullOrEmpty(scene.path))
4947
continue;
5048

49+
buildIndex++;
50+
5151
var sceneIndex = scene.enabled ? buildIndex : InvalidSceneIndex;
5252
var sceneAsset = EditorGUIUtility.Load(scene.path) as SceneAsset;
5353
if (sceneAsset != null)

0 commit comments

Comments
 (0)