mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-29 17:02:57 +02:00
FB18573 - Other avatars' avatar entities may appear to be successfully deleted until edited
note: partially revert commit 888f2f64a5
/ "Merge pull request #10981 from druiz17/bug/delete-avatar-entity
This commit is contained in:
parent
898ba20f1c
commit
9cf94c968a
1 changed files with 0 additions and 5 deletions
|
@ -712,11 +712,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