Improved KeyframeMesh AABB support

When you use KeyframeMesh::SetPosition(frame, vertex, pos), it will now
invalidate the frame AABB.
Finish() method will now generate automatically invalid AABBs before
interpolating


Former-commit-id: aa4695cee635da73e4a3b70ce22e83b1c3f443f9
This commit is contained in:
Lynix
2013-01-03 15:10:06 +01:00
parent 41fb7f7ae5
commit 81e95ecddf
3 changed files with 37 additions and 12 deletions

View File

@@ -26,6 +26,8 @@ class NAZARA_API NzKeyframeMesh final : public NzSubMesh
void Finish();
void GenerateAABBs();
const NzAxisAlignedBox& GetAABB() const override;
nzAnimationType GetAnimationType() const override;
unsigned int GetFrameCount() const;