Merge pull request #11828 from luiscuenca/pr-for-rc-59

Fix not restoring animations after changing view modes RC59
This commit is contained in:
Ryan Downe Karpf 2017-11-16 14:19:12 -08:00 committed by GitHub
commit c255e29fa5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -179,6 +179,11 @@ void Rig::restoreRoleAnimation(const QString& role) {
} else {
qCWarning(animation) << "Rig::restoreRoleAnimation could not find role " << role;
}
auto statesIter = _roleAnimStates.find(role);
if (statesIter != _roleAnimStates.end()) {
_roleAnimStates.erase(statesIter);
}
}
} else {
qCWarning(animation) << "Rig::overrideRoleAnimation avatar not ready yet";