Fix load with DTS shapes introduced with HW skinning changes

This commit is contained in:
James Urquhart 2016-08-30 19:07:02 +01:00
parent 26241020ff
commit 12019173af
5 changed files with 85 additions and 18 deletions

View file

@ -3429,8 +3429,8 @@ void TSBasicVertexFormat::addMeshRequirements(TSMesh *mesh)
bool hasTexcoord2 = false;
bool hasSkin = false;
hasColors = mesh->getHasColor() || (texCoordOffset != -1);
hasTexcoord2 = mesh->getHasTVert2() || (colorOffset != -1);
hasColors = mesh->getHasColor() || (colorOffset != -1);
hasTexcoord2 = mesh->getHasTVert2() || (texCoordOffset != -1);
hasSkin = (mesh->getMeshType() == TSMesh::SkinMeshType) || (boneOffset != -1);
S32 offset = sizeof(TSMesh::__TSMeshVertexBase);