mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +02:00
Tear down animGraph when turning off the avatar update thread. Otherwise, big time deltas accumulate.
This commit is contained in:
parent
83d14d3380
commit
ed2ed525b2
2 changed files with 2 additions and 1 deletions
|
@ -2477,6 +2477,7 @@ void Application::init() {
|
|||
|
||||
void Application::setAvatarUpdateThreading(bool isThreaded) {
|
||||
if (_avatarUpdate) {
|
||||
getMyAvatar()->destroyAnimGraph();
|
||||
_avatarUpdate->terminate();
|
||||
}
|
||||
_avatarUpdate = new AvatarUpdate();
|
||||
|
|
|
@ -152,6 +152,7 @@ public:
|
|||
|
||||
bool getStandingHMDSensorMode() const { return _standingHMDSensorMode; }
|
||||
void doUpdateBillboard();
|
||||
void destroyAnimGraph();
|
||||
|
||||
public slots:
|
||||
void increaseSize();
|
||||
|
@ -291,7 +292,6 @@ private:
|
|||
void maybeUpdateBillboard();
|
||||
void initHeadBones();
|
||||
void initAnimGraph();
|
||||
void destroyAnimGraph();
|
||||
void safelyLoadAnimations();
|
||||
|
||||
// Avatar Preferences
|
||||
|
|
Loading…
Reference in a new issue