mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 04:37:48 +02:00
Merge pull request #15387 from danteruiz/fix-bubble-82
Case 22157: Shield/bubble animation and sound plays when other users are ignored by PAL or their own shields
This commit is contained in:
commit
5c5dc424a4
1 changed files with 4 additions and 2 deletions
|
@ -498,8 +498,10 @@ void AvatarManager::handleRemovedAvatar(const AvatarSharedPointer& removedAvatar
|
||||||
// on the creation of entities for that avatar instance and the deletion of entities for this instance
|
// on the creation of entities for that avatar instance and the deletion of entities for this instance
|
||||||
avatar->removeAvatarEntitiesFromTree();
|
avatar->removeAvatarEntitiesFromTree();
|
||||||
if (removalReason != KillAvatarReason::AvatarDisconnected) {
|
if (removalReason != KillAvatarReason::AvatarDisconnected) {
|
||||||
emit AvatarInputs::getInstance()->avatarEnteredIgnoreRadius(avatar->getSessionUUID());
|
if (removalReason == KillAvatarReason::TheirAvatarEnteredYourBubble) {
|
||||||
emit DependencyManager::get<UsersScriptingInterface>()->enteredIgnoreRadius();
|
emit AvatarInputs::getInstance()->avatarEnteredIgnoreRadius(avatar->getSessionUUID());
|
||||||
|
emit DependencyManager::get<UsersScriptingInterface>()->enteredIgnoreRadius();
|
||||||
|
}
|
||||||
|
|
||||||
workload::Transaction workloadTransaction;
|
workload::Transaction workloadTransaction;
|
||||||
workloadTransaction.remove(avatar->getSpaceIndex());
|
workloadTransaction.remove(avatar->getSpaceIndex());
|
||||||
|
|
Loading…
Reference in a new issue