mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 04:03:35 +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();
|
const QUuid myNodeID = nodeList->getSessionUUID();
|
||||||
if (entity->getClientOnly() && entity->getOwningAvatarID() != myNodeID) {
|
if (entity->getClientOnly() && entity->getOwningAvatarID() != myNodeID) {
|
||||||
// don't delete other avatar's avatarEntities
|
// 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;
|
shouldSendDeleteToServer = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue