mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 18:56:22 +02:00
Merge branch 'master' of ssh://github.com/highfidelity/hifi into fix-particle-avatar-collisions
Conflicts: interface/src/avatar/AvatarManager.cpp
This commit is contained in:
commit
f972bfd024
1 changed files with 2 additions and 3 deletions
|
@ -83,13 +83,13 @@ void AvatarManager::updateAvatars(float deltaTime) {
|
||||||
// simulate avatars
|
// simulate avatars
|
||||||
AvatarHash::iterator avatarIterator = _avatarHash.begin();
|
AvatarHash::iterator avatarIterator = _avatarHash.begin();
|
||||||
while (avatarIterator != _avatarHash.end()) {
|
while (avatarIterator != _avatarHash.end()) {
|
||||||
if (MY_AVATAR_KEY == avatarIterator.key()) {
|
Avatar* avatar = static_cast<Avatar*>(avatarIterator.value().data());
|
||||||
|
if (avatar == static_cast<Avatar*>(_myAvatar)) {
|
||||||
// for now skip updates to _myAvatar because it is done explicitly in Application
|
// for now skip updates to _myAvatar because it is done explicitly in Application
|
||||||
// TODO: update _myAvatar in this context
|
// TODO: update _myAvatar in this context
|
||||||
++avatarIterator;
|
++avatarIterator;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
Avatar* avatar = static_cast<Avatar*>(avatarIterator.value().data());
|
|
||||||
if (avatar->getOwningAvatarMixer()) {
|
if (avatar->getOwningAvatarMixer()) {
|
||||||
// this avatar's mixer is still around, go ahead and simulate it
|
// this avatar's mixer is still around, go ahead and simulate it
|
||||||
avatar->simulate(deltaTime, NULL);
|
avatar->simulate(deltaTime, NULL);
|
||||||
|
@ -271,4 +271,3 @@ void AvatarManager::clearHash() {
|
||||||
removeAvatar = erase(removeAvatar);
|
removeAvatar = erase(removeAvatar);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue