Allow time for avatar mixer to be updated with user's permissions

This commit is contained in:
David Rowe 2021-03-22 13:58:15 +13:00
parent 9c68d0236c
commit b0fee2699c

View file

@ -1595,7 +1595,11 @@ bool MyAvatar::hasAvatarEntities() const {
void MyAvatar::handleCanRezAvatarEntitiesChanged(bool canRezAvatarEntities) {
if (canRezAvatarEntities) {
// Start displaying avatar entities.
addAvatarEntitiesToTree();
// Allow time for the avatar mixer to be updated with the user's permissions so that it doesn't discard the avatar
// entities sent.
QTimer::singleShot(2 * DOMAIN_SERVER_CHECK_IN_MSECS, this, [this] {
addAvatarEntitiesToTree();
});
} else {
// Stop displaying avatar entities.
removeAvatarEntitiesFromTree();