Skip to content

Commit cfe3213

Browse files
committed
ModelGraph - use new JointSpline method
1 parent f5a93e8 commit cfe3213

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/parsers/graph/model-graph-algo.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -235,12 +235,8 @@ namespace pinocchio
235235
ReturnType operator()(const JointSpline & joint) const
236236
{
237237
JointModelSpline jmodel(joint.degree);
238-
239-
for (size_t i = 0; i < joint.ctrlFrames.size(); i++)
240-
{
241-
jmodel.addControlFrame(joint.ctrlFrames[i]);
242-
}
243-
jmodel.buildJoint();
238+
jmodel.setControlFrames(joint.ctrlFrames);
239+
244240
return jmodel;
245241
}
246242
ReturnType operator()(const JointComposite & joint) const

0 commit comments

Comments
 (0)