mirror of
https://github.com/JulianGro/overte.git
synced 2025-05-05 13:08:10 +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) {
|
void MyAvatar::handleCanRezAvatarEntitiesChanged(bool canRezAvatarEntities) {
|
||||||
if (canRezAvatarEntities) {
|
if (canRezAvatarEntities) {
|
||||||
// Start displaying avatar entities.
|
// 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 {
|
} else {
|
||||||
// Stop displaying avatar entities.
|
// Stop displaying avatar entities.
|
||||||
removeAvatarEntitiesFromTree();
|
removeAvatarEntitiesFromTree();
|
||||||
|
|
Loading…
Reference in a new issue