mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-09 09:54:46 +02:00
Allow time for avatar mixer to be updated with user's permissions
This commit is contained in:
parent
9c68d0236c
commit
b0fee2699c
1 changed files with 5 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue