mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 19:41:20 +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;
|
_geometry = geometry;
|
||||||
|
|
||||||
// subtract the neutral locations from the blend shapes; we want the deltas
|
// 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++) {
|
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();
|
glm::vec3* offset = it->vertices.data();
|
||||||
for (int i = 0; i < vertexCount; i++) {
|
for (const int* index = it->indices.constData(), *end = index + it->indices.size(); index != end; index++, offset++) {
|
||||||
*offset -= *neutral;
|
*offset -= geometry.vertices[*index];
|
||||||
|
|
||||||
neutral++;
|
|
||||||
offset++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue