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
b705d76336
commit
3e8508f149
1 changed files with 1 additions and 0 deletions
|
@ -1363,6 +1363,7 @@ void Model::updateJointState(int index) {
|
|||
glm::mat4 parentTransform = glm::scale(_scale) * glm::translate(_offset) * geometry.offset;
|
||||
state.computeTransform(parentTransform);
|
||||
} else {
|
||||
// guard against out-of-bounds access to _jointStates
|
||||
if (joint.parentIndex >= 0 && joint.parentIndex < _jointStates.size()) {
|
||||
const JointState& parentState = _jointStates.at(parentIndex);
|
||||
state.computeTransform(parentState.getTransform(), parentState.getTransformChanged());
|
||||
|
|
Loading…
Reference in a new issue