mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 12:14:00 +02:00
Subtract the deltas.
This commit is contained in:
parent
09fa782c61
commit
116a4e0bad
1 changed files with 2 additions and 9 deletions
|
@ -212,17 +212,10 @@ void BlendFace::setGeometry(const FBXGeometry& geometry) {
|
|||
_geometry = geometry;
|
||||
|
||||
// subtract the neutral locations from the blend shapes; we want the deltas
|
||||
/*
|
||||
int vertexCount = geometry.vertices.size();
|
||||
for (QVector<FBXBlendshape>::iterator it = _geometry.blendshapes.begin(); it != _geometry.blendshapes.end(); it++) {
|
||||
const glm::vec3* neutral = geometry.vertices.constData();
|
||||
glm::vec3* offset = it->vertices.data();
|
||||
for (int i = 0; i < vertexCount; i++) {
|
||||
*offset -= *neutral;
|
||||
|
||||
neutral++;
|
||||
offset++;
|
||||
for (const int* index = it->indices.constData(), *end = index + it->indices.size(); index != end; index++, offset++) {
|
||||
*offset -= geometry.vertices[*index];
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue