Do not disable eye behaviour for remote avatars
This commit is contained in:
parent
9489cdc5b5
commit
3c853c3ba1
@ -1103,9 +1103,17 @@ namespace Passer.Humanoid {
|
||||
}
|
||||
|
||||
HumanoidTarget target = GetTarget(humanoid, targetPose.boneId);
|
||||
if (target != null)
|
||||
target.animator.enabled = false;
|
||||
//target.EnableAnimator(false);
|
||||
if (target != null) {
|
||||
if (targetPose.boneId == Tracking.Bone.Head) {
|
||||
HeadAnimator headAnimator = target.animator as HeadAnimator;
|
||||
if (headAnimator != null)
|
||||
headAnimator.headAnimation = false;
|
||||
}
|
||||
else {
|
||||
target.animator.enabled = false;
|
||||
//target.EnableAnimator(false);
|
||||
}
|
||||
}
|
||||
|
||||
if (targetPose.boneId == Tracking.Bone.LeftHand || targetPose.boneId == Tracking.Bone.RightHand)
|
||||
ReceiveHand((HandTarget)target, (HumanoidHandPose)targetPose);
|
||||
|
Loading…
x
Reference in New Issue
Block a user