mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-02 13:49:07 +08:00
[unity] Fix backwards inherit rotation branch.
This commit is contained in:
parent
3884422543
commit
04b3819a8a
@ -121,7 +121,7 @@ namespace Spine.Unity {
|
|||||||
cachedTransform.localPosition = new Vector3(bone.x, bone.y, 0);
|
cachedTransform.localPosition = new Vector3(bone.x, bone.y, 0);
|
||||||
|
|
||||||
if (rotation) {
|
if (rotation) {
|
||||||
if (!bone.data.transformMode.InheritsRotation()) {
|
if (bone.data.transformMode.InheritsRotation()) {
|
||||||
cachedTransform.localRotation = Quaternion.Euler(0, 0, bone.AppliedRotation);
|
cachedTransform.localRotation = Quaternion.Euler(0, 0, bone.AppliedRotation);
|
||||||
} else {
|
} else {
|
||||||
Vector3 euler = skeletonTransform.rotation.eulerAngles;
|
Vector3 euler = skeletonTransform.rotation.eulerAngles;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user