From 04b3819a8a76bfcd73c4dd9b98df6398e03f01ff Mon Sep 17 00:00:00 2001 From: John Date: Fri, 2 Dec 2016 19:20:03 +0800 Subject: [PATCH] [unity] Fix backwards inherit rotation branch. --- .../Assets/spine-unity/SkeletonUtility/SkeletonUtilityBone.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-unity/Assets/spine-unity/SkeletonUtility/SkeletonUtilityBone.cs b/spine-unity/Assets/spine-unity/SkeletonUtility/SkeletonUtilityBone.cs index 2774fbe35..681ecadbc 100644 --- a/spine-unity/Assets/spine-unity/SkeletonUtility/SkeletonUtilityBone.cs +++ b/spine-unity/Assets/spine-unity/SkeletonUtility/SkeletonUtilityBone.cs @@ -121,7 +121,7 @@ namespace Spine.Unity { cachedTransform.localPosition = new Vector3(bone.x, bone.y, 0); if (rotation) { - if (!bone.data.transformMode.InheritsRotation()) { + if (bone.data.transformMode.InheritsRotation()) { cachedTransform.localRotation = Quaternion.Euler(0, 0, bone.AppliedRotation); } else { Vector3 euler = skeletonTransform.rotation.eulerAngles;