mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-08 17:03:11 +02:00
Merge pull request #14135 from ElderOrb/FB18573
FB18573 - Other avatars' avatar entities may appear to be successfull…
This commit is contained in:
commit
d19cdc62d7
1 changed files with 0 additions and 5 deletions
|
@ -954,11 +954,6 @@ void EntityScriptingInterface::deleteEntity(QUuid id) {
|
|||
const QUuid myNodeID = nodeList->getSessionUUID();
|
||||
if (entity->getClientOnly() && entity->getOwningAvatarID() != myNodeID) {
|
||||
// don't delete other avatar's avatarEntities
|
||||
// If you actually own the entity but the onwership property is not set because of a domain switch
|
||||
// The lines below makes sure the entity is deleted once its properties are set.
|
||||
auto avatarHashMap = DependencyManager::get<AvatarHashMap>();
|
||||
AvatarSharedPointer myAvatar = avatarHashMap->getAvatarBySessionID(myNodeID);
|
||||
myAvatar->insertDetachedEntityID(id);
|
||||
shouldSendDeleteToServer = false;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue