mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 15:49:24 +02:00
send update after changing entity
This commit is contained in:
parent
a6ff19c4ee
commit
084759a918
1 changed files with 3 additions and 1 deletions
|
@ -1630,7 +1630,9 @@ void MyAvatar::handleChangedAvatarEntityData() {
|
||||||
if (!skip) {
|
if (!skip) {
|
||||||
sanitizeAvatarEntityProperties(properties);
|
sanitizeAvatarEntityProperties(properties);
|
||||||
entityTree->withWriteLock([&] {
|
entityTree->withWriteLock([&] {
|
||||||
entityTree->updateEntity(id, properties);
|
if (entityTree->updateEntity(id, properties)) {
|
||||||
|
packetSender->queueEditAvatarEntityMessage(entityTree, id);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue