From 4c72927668b65e3dcde2cf34d3ccf8288bee0ba6 Mon Sep 17 00:00:00 2001 From: "yuta.kojio" Date: Tue, 13 Feb 2024 09:02:58 +0900 Subject: [PATCH] resize is not necessary since GetDOFValues is always called --- src/libopenrave/kinbody.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/libopenrave/kinbody.cpp b/src/libopenrave/kinbody.cpp index 0b95504b67..bc7507c800 100644 --- a/src/libopenrave/kinbody.cpp +++ b/src/libopenrave/kinbody.cpp @@ -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