Fixed bug where meshes added to the mesh library will not have correct corresponding "null" vertex bone weights and indices
This commit is contained in:
parent
12a46c4266
commit
51479d2bd0
|
@ -171,6 +171,10 @@ namespace SHADE
|
||||||
addJob.VertexBoneIndices, addJob.VertexBoneIndices + addJob.VertexCount * SHMesh::BONE_INDICES_PER_VERTEX
|
addJob.VertexBoneIndices, addJob.VertexBoneIndices + addJob.VertexCount * SHMesh::BONE_INDICES_PER_VERTEX
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
vertBoneIdxStorage.resize(vertBoneIdxStorage.size() + addJob.VertexCount * SHMesh::BONE_INDICES_PER_VERTEX);
|
||||||
|
}
|
||||||
if (addJob.VertexBoneWeights)
|
if (addJob.VertexBoneWeights)
|
||||||
{
|
{
|
||||||
vertBoneWeightStorage.insert
|
vertBoneWeightStorage.insert
|
||||||
|
@ -179,6 +183,10 @@ namespace SHADE
|
||||||
addJob.VertexBoneWeights, addJob.VertexBoneWeights + addJob.VertexCount
|
addJob.VertexBoneWeights, addJob.VertexBoneWeights + addJob.VertexCount
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
vertBoneWeightStorage.resize(vertBoneWeightStorage.size() + addJob.VertexCount);
|
||||||
|
}
|
||||||
indexStorage.insert
|
indexStorage.insert
|
||||||
(
|
(
|
||||||
indexStorage.end(),
|
indexStorage.end(),
|
||||||
|
|
Loading…
Reference in New Issue