Skip to content

Commit 05fa596

Browse files
authored
Merge pull request #24 from umasteeringgroup/fix-uma26/GetTPoseCorrectedRotation
Proper fix for GetTPoseCorrectedRotation
2 parents 5600e47 + 7365476 commit 05fa596

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

UMAProject/Assets/UMA/Core/StandardAssets/UMA/Scripts/UMAGeneratorBase.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ private static void SkeletonModifier(UMAData umaData, ref SkeletonBone[] bones,
331331
{
332332
skeletonbone.position = boneGO.transform.localPosition;
333333
skeletonbone.scale = boneGO.transform.localScale;
334-
skeletonbone.rotation = umaData.skeleton.GetTPoseCorrectedRotation(boneHash, boneGO.transform.localRotation);
334+
skeletonbone.rotation = umaData.skeleton.GetTPoseCorrectedRotation(boneHash, skeletonbone.rotation);
335335
newBones.Add(skeletonbone);
336336
}
337337
}

UMAProject/Assets/UMA/Core/StandardAssets/UMA/Scripts/UMASkeleton.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ public virtual void EnsureBoneHierarchy()
660660

661661
public virtual Quaternion GetTPoseCorrectedRotation(int nameHash, Quaternion tPoseRotation)
662662
{
663-
return tPoseRotation;
663+
return boneHashData[nameHash].boneTransform.localRotation;
664664
}
665665
}
666666
}

0 commit comments

Comments
 (0)