mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
Don't weight blendshapes by default blendshape values
This commit is contained in:
parent
f946791791
commit
a819b140dc
1 changed files with 0 additions and 8 deletions
|
@ -1567,7 +1567,6 @@ bool GLTFSerializer::buildGeometry(HFMModel& hfmModel, const hifi::VariantHash&
|
||||||
auto keys = blendshapeIndices.keys();
|
auto keys = blendshapeIndices.keys();
|
||||||
auto values = blendshapeIndices.values();
|
auto values = blendshapeIndices.values();
|
||||||
auto names = _file.meshes[node.mesh].extras.targetNames;
|
auto names = _file.meshes[node.mesh].extras.targetNames;
|
||||||
QVector<double> weights = _file.meshes[node.mesh].weights;
|
|
||||||
|
|
||||||
for (int weightedIndex = 0; weightedIndex < keys.size(); ++weightedIndex) {
|
for (int weightedIndex = 0; weightedIndex < keys.size(); ++weightedIndex) {
|
||||||
float weight = 1.0f;
|
float weight = 1.0f;
|
||||||
|
@ -1587,13 +1586,6 @@ bool GLTFSerializer::buildGeometry(HFMModel& hfmModel, const hifi::VariantHash&
|
||||||
QVector<glm::vec3> normals;
|
QVector<glm::vec3> normals;
|
||||||
QVector<glm::vec3> vertices;
|
QVector<glm::vec3> vertices;
|
||||||
|
|
||||||
if (weights.size() == primitive.targets.size()) {
|
|
||||||
int targetWeight = weights[targetIndex];
|
|
||||||
if (targetWeight != 0) {
|
|
||||||
weight = weight * targetWeight;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (target.values.contains((QString) "NORMAL")) {
|
if (target.values.contains((QString) "NORMAL")) {
|
||||||
generateTargetData(target.values.value((QString) "NORMAL"), weight, normals);
|
generateTargetData(target.values.value((QString) "NORMAL"), weight, normals);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue