Fixed reading inherit scale and rotation.

This commit is contained in:
NathanSweet 2014-07-25 20:31:22 +02:00
parent 4eb73738c2
commit b0da7d0e52

View File

@ -99,8 +99,8 @@ public class SkeletonJson {
boneData.rotation = (boneMap["rotation"] || 0);
boneData.scaleX = boneMap.hasOwnProperty("scaleX") ? boneMap["scaleX"] : 1;
boneData.scaleY = boneMap.hasOwnProperty("scaleY") ? boneMap["scaleY"] : 1;
boneData.inheritScale = !boneMap["inheritScale"] || boneMap["inheritScale"] == "true";
boneData.inheritRotation = !boneMap["inheritRotation"] || boneMap["inheritRotation"] == "true";
boneData.inheritScale = boneMap.hasOwnProperty("inheritScale") ? boneMap["inheritScale"] : true;
boneData.inheritRotation = boneMap.hasOwnProperty("inheritRotation") ? boneMap["inheritRotation"] : true;
skeletonData.addBone(boneData);
}