From 467853a786decfaf174f6673f0c84cd4907c8da2 Mon Sep 17 00:00:00 2001 From: John Date: Thu, 5 Jan 2017 19:01:58 +0800 Subject: [PATCH] [unity] Fix binary version check. --- spine-unity/Assets/spine-unity/Editor/SpineEditorUtilities.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/spine-unity/Assets/spine-unity/Editor/SpineEditorUtilities.cs b/spine-unity/Assets/spine-unity/Editor/SpineEditorUtilities.cs index fc51875da..05333e11e 100644 --- a/spine-unity/Assets/spine-unity/Editor/SpineEditorUtilities.cs +++ b/spine-unity/Assets/spine-unity/Editor/SpineEditorUtilities.cs @@ -1191,6 +1191,7 @@ namespace Spine.Unity.Editor { try { rawVersion = SkeletonBinary.GetVersionString(new MemoryStream(asset.bytes)); //Debug.Log(rawVersion); + isSpineData = !(string.IsNullOrEmpty(rawVersion)); } catch (System.Exception e) { Debug.LogErrorFormat("Failed to read '{0}'. It is likely not a binary Spine SkeletonData file.\n{1}", asset.name, e); return false;