mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
WORKAROUND: for "ik" entry missing from exported JSON parsing fail Spine C#
This commit is contained in:
parent
7e51a73500
commit
a4443caca4
@ -120,6 +120,7 @@ namespace Spine {
|
||||
}
|
||||
|
||||
// IK constraints.
|
||||
if(root.ContainsKey("ik")){
|
||||
foreach (Dictionary<String, Object> ikMap in (List<Object>)root["ik"]) {
|
||||
IkConstraintData ikConstraintData = new IkConstraintData((String)ikMap["name"]);
|
||||
|
||||
@ -138,6 +139,7 @@ namespace Spine {
|
||||
|
||||
skeletonData.ikConstraints.Add(ikConstraintData);
|
||||
}
|
||||
}
|
||||
|
||||
// Slots.
|
||||
if (root.ContainsKey("slots")) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user