mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 11:14:01 +02:00
Ensure a minimum of one joint-verts sets to prevent crash
A baked FBX that has no joints will cause a crash without this.
This commit is contained in:
parent
2d2980c8f2
commit
a17359d2df
1 changed files with 1 additions and 1 deletions
|
@ -1602,7 +1602,7 @@ FBXGeometry* FBXReader::extractFBXGeometry(const QVariantHash& mapping, const QS
|
||||||
|
|
||||||
// NOTE: shapeVertices are in joint-frame
|
// NOTE: shapeVertices are in joint-frame
|
||||||
std::vector<ShapeVertices> shapeVertices;
|
std::vector<ShapeVertices> shapeVertices;
|
||||||
shapeVertices.resize(geometry.joints.size());
|
shapeVertices.resize(std::max(1, geometry.joints.size()) );
|
||||||
|
|
||||||
// find our special joints
|
// find our special joints
|
||||||
geometry.leftEyeJointIndex = modelIDs.indexOf(jointEyeLeftID);
|
geometry.leftEyeJointIndex = modelIDs.indexOf(jointEyeLeftID);
|
||||||
|
|
Loading…
Reference in a new issue