fixed atomic world bounding sphere

This commit is contained in:
aap 2016-02-24 07:41:55 +01:00
parent a6a7b0e89c
commit 63521d903f

View File

@ -615,8 +615,8 @@ Atomic::getWorldBoundingSphere(void)
return s;
Matrix *ltm = this->getFrame()->getLTM();
// TODO: support scaling
s->center = ltm->transPoint(s->center);
// TODO: if we ever support morphing, fix this:
s->center = ltm->transPoint(this->geometry->morphTargets[0].boundingSphere.center);
s->radius = this->geometry->morphTargets[0].boundingSphere.radius;
this->object.privateFlags &= ~WORLDBOUNDDIRTY;
return s;