mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 22:28:37 +02:00
Merge pull request #15347 from luiscuenca/computeKdopsFix83
Fix out of bounds computing KDOPs when the model url is incorrect
This commit is contained in:
commit
78256fb5bb
1 changed files with 3 additions and 1 deletions
|
@ -166,7 +166,9 @@ void HFMModel::computeKdops() {
|
||||||
glm::vec3(INV_SQRT_3, INV_SQRT_3, -INV_SQRT_3),
|
glm::vec3(INV_SQRT_3, INV_SQRT_3, -INV_SQRT_3),
|
||||||
glm::vec3(INV_SQRT_3, -INV_SQRT_3, -INV_SQRT_3)
|
glm::vec3(INV_SQRT_3, -INV_SQRT_3, -INV_SQRT_3)
|
||||||
};
|
};
|
||||||
|
if (joints.size() != (int)shapeVertices.size()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
// now that all joints have been scanned compute a k-Dop bounding volume of mesh
|
// now that all joints have been scanned compute a k-Dop bounding volume of mesh
|
||||||
for (int i = 0; i < joints.size(); ++i) {
|
for (int i = 0; i < joints.size(); ++i) {
|
||||||
HFMJoint& joint = joints[i];
|
HFMJoint& joint = joints[i];
|
||||||
|
|
Loading…
Reference in a new issue