mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 01:13:32 +02:00
fix bug using unitialized std::vector elements
This commit is contained in:
parent
a72199a7df
commit
d74628720f
1 changed files with 1 additions and 1 deletions
|
@ -322,7 +322,7 @@ void AnimInverseKinematics::initConstraints() {
|
|||
// compute corresponding absolute poses
|
||||
int numJoints = (int)_defaultRelativePoses.size();
|
||||
AnimPoseVec absolutePoses;
|
||||
absolutePoses.reserve(numJoints);
|
||||
absolutePoses.resize(numJoints);
|
||||
for (int i = 0; i < numJoints; ++i) {
|
||||
int parentIndex = _skeleton->getParentIndex(i);
|
||||
if (parentIndex < 0) {
|
||||
|
|
Loading…
Reference in a new issue