Commit 0879f07b authored by hybrid's avatar hybrid

The real bbox fix from tprochownik.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1611 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 47eaf3c0
...@@ -1068,10 +1068,16 @@ void CSkinnedMesh::finalize() ...@@ -1068,10 +1068,16 @@ void CSkinnedMesh::finalize()
BoundingBox.reset(0,0,0); BoundingBox.reset(0,0,0);
else else
{ {
BoundingBox.reset(LocalBuffers[0]->BoundingBox.MaxEdge); irr::core::aabbox3df bb(LocalBuffers[0]->BoundingBox);
for (u32 j=0; j<LocalBuffers.size(); ++j) LocalBuffers[0]->Transformation.transformBoxEx(bb);
BoundingBox.reset(bb);
for (u32 j=1; j<LocalBuffers.size(); ++j)
{ {
BoundingBox.addInternalBox(LocalBuffers[j]->BoundingBox); bb = LocalBuffers[j]->BoundingBox;
LocalBuffers[j]->Transformation.transformBoxEx(bb);
BoundingBox.addInternalBox(bb);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment