Merge pull request #7461 from hyperlogic/tony/avatar-culling-fix

Avatar: fix for Avatar animation updates while wearing HMD
This commit is contained in:
Brad Hefta-Gaub 2016-03-24 17:34:20 -07:00
commit 6d76a5872f

View file

@ -187,7 +187,7 @@ void Avatar::simulate(float deltaTime) {
// simple frustum check
float boundingRadius = getBoundingRadius();
bool inView = qApp->getViewFrustum()->sphereIntersectsFrustum(getPosition(), boundingRadius);
bool inView = qApp->getDisplayViewFrustum()->sphereIntersectsFrustum(getPosition(), boundingRadius);
if (_shouldAnimate && !_shouldSkipRender && inView) {
{