mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 01:50:12 +02:00
9267 Fix not restoring animations after changing view modes
This commit is contained in:
parent
21503a635f
commit
9f9c1e2d97
1 changed files with 5 additions and 0 deletions
|
@ -179,6 +179,11 @@ void Rig::restoreRoleAnimation(const QString& role) {
|
||||||
} else {
|
} else {
|
||||||
qCWarning(animation) << "Rig::restoreRoleAnimation could not find role " << role;
|
qCWarning(animation) << "Rig::restoreRoleAnimation could not find role " << role;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
auto statesIter = _roleAnimStates.find(role);
|
||||||
|
if (statesIter != _roleAnimStates.end()) {
|
||||||
|
_roleAnimStates.erase(statesIter);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
qCWarning(animation) << "Rig::overrideRoleAnimation avatar not ready yet";
|
qCWarning(animation) << "Rig::overrideRoleAnimation avatar not ready yet";
|
||||||
|
|
Loading…
Reference in a new issue