Преглед на файлове

[unity] Fix backwards inherit rotation branch.

John преди 8 години
родител
ревизия
04b3819a8a
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      spine-unity/Assets/spine-unity/SkeletonUtility/SkeletonUtilityBone.cs

+ 1 - 1
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;