[unity] Fix backwards json check.

This commit is contained in:
John 2016-10-17 18:50:57 +08:00 committed by GitHub
parent 97756d6921
commit 92236380c0

View File

@ -1162,7 +1162,7 @@ namespace Spine.Unity.Editor {
var skeletonInfo = (Dictionary<string, object>)root["skeleton"];
object jv;
skeletonInfo.TryGetValue("spine", out jv);
string jsonVersion = (jv == null) ? (string)jv : null;
string jsonVersion = jv as string;
if (!string.IsNullOrEmpty(jsonVersion)) {
string[] jsonVersionSplit = jsonVersion.Split('.');
bool match = false;