[unity] Fix binary version check.

This commit is contained in:
John 2017-01-05 19:01:58 +08:00 committed by GitHub
parent 343f144c93
commit 467853a786

View File

@ -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;