no tpose when switching avatars

(cherry picked from commit fcfac9efc0)
This commit is contained in:
SamGondelman 2017-09-29 11:14:29 -07:00
parent 5509be7d33
commit b8ea6c22fa

View file

@ -249,6 +249,7 @@ void Rig::reset(const FBXGeometry& geometry) {
_rightShoulderJointIndex = _rightElbowJointIndex >= 0 ? geometry.joints.at(_rightElbowJointIndex).parentIndex : -1;
if (!_animGraphURL.isEmpty()) {
_animNode.reset();
initAnimGraph(_animGraphURL);
}
}
@ -1619,7 +1620,7 @@ void Rig::updateFromControllerParameters(const ControllerParameters& params, flo
}
void Rig::initAnimGraph(const QUrl& url) {
if (_animGraphURL != url) {
if (_animGraphURL != url || !_animNode) {
_animGraphURL = url;
_animNode.reset();