mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-21 01:06:43 +08:00
[unity] Fix backwards json check.
This commit is contained in:
parent
97756d6921
commit
92236380c0
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user