mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
Merge pull request #13749 from samcake/punk
Fix the other avatars not being removed when Avatar mixer reset
This commit is contained in:
commit
aac4ff0b7e
1 changed files with 0 additions and 3 deletions
|
@ -412,9 +412,6 @@ void AvatarManager::clearOtherAvatars() {
|
||||||
while (avatarIterator != _avatarHash.end()) {
|
while (avatarIterator != _avatarHash.end()) {
|
||||||
auto avatar = std::static_pointer_cast<Avatar>(avatarIterator.value());
|
auto avatar = std::static_pointer_cast<Avatar>(avatarIterator.value());
|
||||||
if (avatar != _myAvatar) {
|
if (avatar != _myAvatar) {
|
||||||
if (avatar->isInScene()) {
|
|
||||||
avatar->removeFromScene(avatar, scene, transaction);
|
|
||||||
}
|
|
||||||
handleRemovedAvatar(avatar);
|
handleRemovedAvatar(avatar);
|
||||||
avatarIterator = _avatarHash.erase(avatarIterator);
|
avatarIterator = _avatarHash.erase(avatarIterator);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue