From 63521d903f413d312d309efac3b8a34c42979fe6 Mon Sep 17 00:00:00 2001 From: aap Date: Wed, 24 Feb 2016 07:41:55 +0100 Subject: [PATCH] fixed atomic world bounding sphere --- src/clump.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clump.cpp b/src/clump.cpp index 05f5b2c..7be31bf 100644 --- a/src/clump.cpp +++ b/src/clump.cpp @@ -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;