The mentioned member method is declared, but not implemented. I am trying to clear the skeleton animations from the loaded mesh, but get the linker error, when I called the function.
However it seems that clearing existing skeleton is not so direct as I thought - it is necessary to set empty skeleton name, clear bone assignments and call SubMesh::_buildBoneIndexMap. It think it would be a good idea to pack everything together - e.g. when set empty name of the skeleton.
Note that I never needed to work with skeletal animations so I have zero experience here about the restrictions / possibilities and why there is no such method implemented.
Something like this is working for me:
Code: Select all
for (uint32_t k = 0; k < pMesh->getNumSubMeshes(); ++k)
{
pMesh->getSubMesh(k)->clearBoneAssignments();
pMesh->getSubMesh(k)->_compileBoneAssignments();
pMesh->getSubMesh(k)->_buildBoneIndexMap();
}