From b0da7d0e520e9eeb7677c49b03b5dac0ae71d151 Mon Sep 17 00:00:00 2001 From: NathanSweet Date: Fri, 25 Jul 2014 20:31:22 +0200 Subject: [PATCH] Fixed reading inherit scale and rotation. --- spine-as3/spine-as3/src/spine/SkeletonJson.as | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spine-as3/spine-as3/src/spine/SkeletonJson.as b/spine-as3/spine-as3/src/spine/SkeletonJson.as index b0dc28f37..9937592bf 100644 --- a/spine-as3/spine-as3/src/spine/SkeletonJson.as +++ b/spine-as3/spine-as3/src/spine/SkeletonJson.as @@ -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); }