mirror of
https://github.com/overte-org/overte.git
synced 2025-08-05 21:10:12 +02:00
bringing back a bug fix from samuel
This commit is contained in:
parent
b5a47b2e76
commit
1e112d3c84
1 changed files with 2 additions and 2 deletions
|
@ -1533,11 +1533,11 @@ void Model::setBlendedVertices(int blendNumber, const QVector<BlendshapeOffset>&
|
||||||
for (int i = 0; i < fbxGeometry.meshes.size(); i++) {
|
for (int i = 0; i < fbxGeometry.meshes.size(); i++) {
|
||||||
const FBXMesh& mesh = fbxGeometry.meshes.at(i);
|
const FBXMesh& mesh = fbxGeometry.meshes.at(i);
|
||||||
auto meshBlendshapeOffsets = _blendshapeOffsets.find(i);
|
auto meshBlendshapeOffsets = _blendshapeOffsets.find(i);
|
||||||
if (mesh.blendshapes.isEmpty() || meshBlendshapeOffsets == _blendshapeOffsets.end() || meshBlendshapeOffsets == _blendshapeOffsets.end()) {
|
const auto& buffer = _blendshapeBuffers.find(i);
|
||||||
|
if (mesh.blendshapes.isEmpty() || meshBlendshapeOffsets == _blendshapeOffsets.end() || buffer == _blendshapeBuffers.end()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto& buffer = _blendshapeBuffers.find(i);
|
|
||||||
const auto blendshapeOffsetSize = meshBlendshapeOffsets->second.size() * sizeof(BlendshapeOffset);
|
const auto blendshapeOffsetSize = meshBlendshapeOffsets->second.size() * sizeof(BlendshapeOffset);
|
||||||
buffer->second->setData(blendshapeOffsetSize, (gpu::Byte*) blendshapeOffsets.constData() + index * sizeof(BlendshapeOffset));
|
buffer->second->setData(blendshapeOffsetSize, (gpu::Byte*) blendshapeOffsets.constData() + index * sizeof(BlendshapeOffset));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue