mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 09:33:45 +02:00
9267 Fix not restoring animations after changing view modes
This commit is contained in:
parent
d83f3152dd
commit
bf0d55aa98
1 changed files with 5 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue