mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
CR feedback
This commit is contained in:
parent
3e8508f149
commit
9fb53e3d72
1 changed files with 1 additions and 0 deletions
|
@ -87,6 +87,7 @@ void FaceModel::maybeUpdateEyeRotation(Model* model, const JointState& parentSta
|
|||
void FaceModel::updateJointState(int index) {
|
||||
JointState& state = _jointStates[index];
|
||||
const FBXJoint& joint = state.getFBXJoint();
|
||||
// guard against out-of-bounds access to _jointStates
|
||||
if (joint.parentIndex != -1 && joint.parentIndex >= 0 && joint.parentIndex < _jointStates.size()) {
|
||||
const JointState& parentState = _jointStates.at(joint.parentIndex);
|
||||
const FBXGeometry& geometry = _geometry->getFBXGeometry();
|
||||
|
|
Loading…
Reference in a new issue