mirror of
https://github.com/aap/librw.git
synced 2024-11-25 13:15:43 +00:00
fixed atomic world bounding sphere
This commit is contained in:
parent
a6a7b0e89c
commit
63521d903f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user