mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +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) {
|
||||
sanitizeAvatarEntityProperties(properties);
|
||||
entityTree->withWriteLock([&] {
|
||||
entityTree->updateEntity(id, properties);
|
||||
if (entityTree->updateEntity(id, properties)) {
|
||||
packetSender->queueEditAvatarEntityMessage(entityTree, id);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue