Skip to content

Commit

Permalink
resize is not necessary since GetDOFValues is always called
Browse files Browse the repository at this point in the history
  • Loading branch information
YutaKojio committed Feb 13, 2024
1 parent 53b5edc commit 4c72927
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/libopenrave/kinbody.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2164,7 +2164,6 @@ void KinBody::SetDOFValues(const dReal* pJointValues, int dof, uint32_t checklim
_vTempJoints.assign(pJointValues, pJointValues + dof);
}
else {
_vTempJoints.resize(GetDOF());
GetDOFValues(_vTempJoints);
if( dofindices.size() > 0 ) {
// user only set a certain number of indices, so have to fill the temporary array with the full set of values first
Expand Down

0 comments on commit 4c72927

Please sign in to comment.