Sfoglia il codice sorgente

[unity] Update skeleton data version check.

John 7 anni fa
parent
commit
8cb2197da3

+ 2 - 2
spine-unity/Assets/Spine/Editor/spine-unity/Editor/SpineEditorUtilities.cs

@@ -1258,8 +1258,8 @@ namespace Spine.Unity.Editor {
 
 		#region SkeletonDataFileValidator
 		internal static class SkeletonDataFileValidator {
-			static int[][] compatibleBinaryVersions = { new[] { 3, 6, 0 }, new[] { 3, 5, 0 } };
-			static int[][] compatibleJsonVersions = { new[] { 3, 6, 0 }, new[] { 3, 7, 0 }, new[] { 3, 5, 0 } };
+			static readonly int[][] compatibleBinaryVersions = { new[] { 3, 7, 0 } };
+			static readonly int[][] compatibleJsonVersions = { new[] { 3, 7, 0 }, new[] { 3, 6, 0 }, new[] { 3, 5, 0 } };
 			//static bool isFixVersionRequired = false;
 
 			public static bool CheckForValidSkeletonData (string skeletonJSONPath) {