Skip to content

Commit

Permalink
Fix initial positions causing exceptions on basic avatars
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoco007 committed Feb 2, 2020
1 parent efb81b6 commit 2547f5b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/CustomAvatar/AvatarBehaviour.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ private void Start()
_rightLeg = transform.Find("RightLeg");
_pelvis = transform.Find("Pelvis");

_initialPelvisPose = new Pose(_pelvis.position, _pelvis.rotation);
_initialLeftFootPose = new Pose(_leftLeg.position, _leftLeg.rotation);
_initialRightFootPose = new Pose(_rightLeg.position, _rightLeg.rotation);
if (_pelvis) _initialPelvisPose = new Pose(_pelvis.position, _pelvis.rotation);
if (_leftLeg) _initialLeftFootPose = new Pose(_leftLeg.position, _leftLeg.rotation);
if (_rightLeg) _initialRightFootPose = new Pose(_rightLeg.position, _rightLeg.rotation);

SetVrikReferences();

Expand Down

0 comments on commit 2547f5b

Please sign in to comment.