mirror of
https://github.com/lubosz/overte.git
synced 2025-04-17 12:36:24 +02:00
Merge pull request #11823 from luiscuenca/case9267
Fix not restoring animations after changing view modes
This commit is contained in:
commit
0306c22394
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