STKAnimatedMesh: Fix setMesh.

We don't clean our vram however.
This commit is contained in:
Vincent Lejeune 2014-01-24 21:12:55 +01:00
parent 324c1c1e95
commit a8ce8c9344
2 changed files with 9 additions and 0 deletions

View File

@ -17,6 +17,13 @@ const core::vector3df& scale) :
firstTime = true;
}
void STKAnimatedMesh::setMesh(scene::IAnimatedMesh* mesh)
{
firstTime = true;
GLmeshes.clear();
CAnimatedMeshSceneNode::setMesh(mesh);
}
void drawObjectRimLimit(const GLMesh &mesh, const core::matrix4 &ModelViewProjectionMatrix, const core::matrix4 &TransposeInverseModelView)
{
GLenum ptype = mesh.PrimitiveType;

View File

@ -20,7 +20,9 @@ public:
const irr::core::vector3df& position = irr::core::vector3df(0,0,0),
const irr::core::vector3df& rotation = irr::core::vector3df(0,0,0),
const irr::core::vector3df& scale = irr::core::vector3df(1.0f, 1.0f, 1.0f));
virtual void render();
virtual void setMesh(irr::scene::IAnimatedMesh* mesh);
};
#endif // STKANIMATEDMESH_HPP