mirror of
https://github.com/overte-org/overte.git
synced 2025-07-23 22:23:50 +02:00
minor syntax fix
This commit is contained in:
parent
7e5375d40a
commit
fcc7e9af30
1 changed files with 3 additions and 3 deletions
|
@ -863,7 +863,6 @@ bool GLTFSerializer::buildGeometry(HFMModel& hfmModel, const hifi::URL& url) {
|
||||||
std::vector<glm::mat4> jointInverseBindTransforms;
|
std::vector<glm::mat4> jointInverseBindTransforms;
|
||||||
jointInverseBindTransforms.resize(numNodes);
|
jointInverseBindTransforms.resize(numNodes);
|
||||||
if (!_file.skins.isEmpty()) {
|
if (!_file.skins.isEmpty()) {
|
||||||
int matrixIndex = 0;
|
|
||||||
std::vector<std::vector<float>> inverseBindValues;
|
std::vector<std::vector<float>> inverseBindValues;
|
||||||
getSkinInverseBindMatrices(inverseBindValues);
|
getSkinInverseBindMatrices(inverseBindValues);
|
||||||
|
|
||||||
|
@ -886,7 +885,6 @@ bool GLTFSerializer::buildGeometry(HFMModel& hfmModel, const hifi::URL& url) {
|
||||||
value[matrixCount + 4], value[matrixCount + 5], value[matrixCount + 6], value[matrixCount + 7],
|
value[matrixCount + 4], value[matrixCount + 5], value[matrixCount + 6], value[matrixCount + 7],
|
||||||
value[matrixCount + 8], value[matrixCount + 9], value[matrixCount + 10], value[matrixCount + 11],
|
value[matrixCount + 8], value[matrixCount + 9], value[matrixCount + 10], value[matrixCount + 11],
|
||||||
value[matrixCount + 12], value[matrixCount + 13], value[matrixCount + 14], value[matrixCount + 15]);
|
value[matrixCount + 12], value[matrixCount + 13], value[matrixCount + 14], value[matrixCount + 15]);
|
||||||
matrixIndex++;
|
|
||||||
} else {
|
} else {
|
||||||
jointInverseBindTransforms[jointIndex] = glm::mat4();
|
jointInverseBindTransforms[jointIndex] = glm::mat4();
|
||||||
}
|
}
|
||||||
|
@ -943,7 +941,9 @@ bool GLTFSerializer::buildGeometry(HFMModel& hfmModel, const hifi::URL& url) {
|
||||||
}
|
}
|
||||||
HFMCluster root;
|
HFMCluster root;
|
||||||
root.jointIndex = rootNode;
|
root.jointIndex = rootNode;
|
||||||
if (root.jointIndex == -1) { root.jointIndex = 0; }
|
if (root.jointIndex == -1) {
|
||||||
|
root.jointIndex = 0;
|
||||||
|
}
|
||||||
root.inverseBindMatrix = jointInverseBindTransforms[root.jointIndex];
|
root.inverseBindMatrix = jointInverseBindTransforms[root.jointIndex];
|
||||||
root.inverseBindTransform = Transform(root.inverseBindMatrix);
|
root.inverseBindTransform = Transform(root.inverseBindMatrix);
|
||||||
mesh.clusters.append(root);
|
mesh.clusters.append(root);
|
||||||
|
|
Loading…
Reference in a new issue