//FIXME for old mesh format create empty HWSkinning buffers
private void fixHWSkinningBuffers(Mesh mesh) {
//creating empty buffers for HW skinning
//the buffers will be setup if ever used.
//setting usage to cpuOnly so that the buffer is not send empty to the GPU
VertexBuffer indicesHW = mesh.getBuffer(Type.HWBoneIndex);
if(indicesHW == null){
indicesHW = new VertexBuffer(Type.HWBoneIndex);
indicesHW.setUsage(Usage.CpuOnly);
mesh.setBuffer(indicesHW);
}
VertexBuffer weightsHW = mesh.getBuffer(Type.HWBoneWeight);
if(weightsHW == null) {
weightsHW = new VertexBuffer(Type.HWBoneWeight);
weightsHW.setUsage(Usage.CpuOnly);
mesh.setBuffer(weightsHW);
}
}