mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-23 10:11:23 +08:00
[libgdx] JsonRollback tool clean up.
This commit is contained in:
parent
c98ed30ebb
commit
14aa093d2d
@ -115,10 +115,8 @@ public class JsonRollback {
|
|||||||
JsonValue skins = root.get("skins");
|
JsonValue skins = root.get("skins");
|
||||||
if (skins != null && skins.isArray()) {
|
if (skins != null && skins.isArray()) {
|
||||||
JsonValue newSkins = new JsonValue(ValueType.object);
|
JsonValue newSkins = new JsonValue(ValueType.object);
|
||||||
for (JsonValue skinMap = skins.child; skinMap != null; skinMap = skinMap.next) {
|
for (JsonValue skinMap = skins.child; skinMap != null; skinMap = skinMap.next)
|
||||||
JsonValue newSkin = skinMap.get("attachments");
|
newSkins.addChild(skinMap.getString("name"), skinMap.get("attachments"));
|
||||||
newSkins.addChild(skinMap.getString("name"), newSkin);
|
|
||||||
}
|
|
||||||
root.remove("skins");
|
root.remove("skins");
|
||||||
root.addChild("skins", newSkins);
|
root.addChild("skins", newSkins);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user