Skip to content

Commit

Permalink
Fix patching when there are immutable scenes
Browse files Browse the repository at this point in the history
  • Loading branch information
FilipAlg committed Jan 23, 2025
1 parent e7afbbb commit e162227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Editor/AGXUnityEditor/PatchHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public static void ApplyPatches()
HandlePrefabPath( prefabs[ i ] );
}

var scenes = AssetDatabase.FindAssets( "t:scene" ).Select(guid => AssetDatabase.GUIDToAssetPath( guid ) ).ToArray();
var scenes = AssetDatabase.FindAssets( "t:scene" ).Select(guid => AssetDatabase.GUIDToAssetPath( guid ) ).Where(p => !p.StartsWith("Packages")).ToArray();
var setup = EditorSceneManager.GetSceneManagerSetup();
for ( int i = 0; i < scenes.Length; i++ ) {
EditorUtility.DisplayProgressBar( "Patching objects to 5.2.0", "Patching Scenes...", (float)i / scenes.Length );
Expand Down

0 comments on commit e162227

Please sign in to comment.