From 62937c2beff9f0c6277968100a1da9ca73f6211d Mon Sep 17 00:00:00 2001 From: David Rowe Date: Thu, 16 Jul 2020 10:11:32 +1200 Subject: [PATCH 1/2] Fix avatar not displaying when recording is re-loaded --- assignment-client/src/Agent.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assignment-client/src/Agent.cpp b/assignment-client/src/Agent.cpp index ad68b07bb1..1b5520f91f 100644 --- a/assignment-client/src/Agent.cpp +++ b/assignment-client/src/Agent.cpp @@ -615,6 +615,10 @@ void Agent::setIsAvatar(bool isAvatar) { delete _avatarQueryTimer; _avatarQueryTimer = nullptr; + // Clear the skeleton model so thatk if agent is set to an avatar again the skeleton model is (re)loaded. + auto scriptedAvatar = DependencyManager::get(); + scriptedAvatar->setSkeletonModelURL(QUrl()); + // The avatar mixer never times out a connection (e.g., based on identity or data packets) // but rather keeps avatars in its list as long as "connected". As a result, clients timeout // when we stop sending identity, but then get woken up again by the mixer itself, which sends From 91aa878dabc212e2e84fd709a506c9bf1ece00be Mon Sep 17 00:00:00 2001 From: David Rowe Date: Fri, 17 Jul 2020 21:02:32 +1200 Subject: [PATCH 2/2] Typo --- assignment-client/src/Agent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assignment-client/src/Agent.cpp b/assignment-client/src/Agent.cpp index 1b5520f91f..59e53bb2cb 100644 --- a/assignment-client/src/Agent.cpp +++ b/assignment-client/src/Agent.cpp @@ -615,7 +615,7 @@ void Agent::setIsAvatar(bool isAvatar) { delete _avatarQueryTimer; _avatarQueryTimer = nullptr; - // Clear the skeleton model so thatk if agent is set to an avatar again the skeleton model is (re)loaded. + // Clear the skeleton model so that if agent is set to an avatar again the skeleton model is (re)loaded. auto scriptedAvatar = DependencyManager::get(); scriptedAvatar->setSkeletonModelURL(QUrl());