mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-11 12:42:28 +02:00
Fix avatar entity not disappearing from other users' view
This commit is contained in:
parent
db0f7a9884
commit
fa77441fda
1 changed files with 4 additions and 2 deletions
|
@ -1536,12 +1536,14 @@ void MyAvatar::storeAvatarEntityDataPayload(const QUuid& entityID, const QByteAr
|
|||
|
||||
void MyAvatar::clearAvatarEntity(const QUuid& entityID, bool requiresRemovalFromTree) {
|
||||
// NOTE: the requiresRemovalFromTree argument is unused
|
||||
|
||||
AvatarData::clearAvatarEntity(entityID);
|
||||
|
||||
if (!DependencyManager::get<NodeList>()->getThisNodeCanRezAvatarEntities()) {
|
||||
// Don't delete potentially non-rezzed avatar entities, otherwise they're removed from settings.
|
||||
// Don't delete potentially non-rezzed avatar entities from cache, otherwise they're removed from settings.
|
||||
return;
|
||||
}
|
||||
|
||||
AvatarData::clearAvatarEntity(entityID);
|
||||
_avatarEntitiesLock.withWriteLock([&] {
|
||||
_cachedAvatarEntityBlobsToDelete.push_back(entityID);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue