Commit e3782bce authored by Florent Lamiraux's avatar Florent Lamiraux
Browse files

Do not copy outer objects when cloning a body

  - this does not make any sense.
parent 1b9f4045
......@@ -79,21 +79,11 @@ namespace hpp {
itObj != collisionInnerObjects_.end (); ++itObj) {
newBody->collisionInnerObjects_.push_back ((*itObj)->clone (joint));
}
for (ObjectVector_t::const_iterator itObj =
collisionOuterObjects_.begin ();
itObj != collisionOuterObjects_.end (); ++itObj) {
newBody->collisionOuterObjects_.push_back ((*itObj)->clone (joint));
}
for (ObjectVector_t::const_iterator itObj =
distanceInnerObjects_.begin ();
itObj != distanceInnerObjects_.end (); ++itObj) {
newBody->distanceInnerObjects_.push_back ((*itObj)->clone (joint));
}
for (ObjectVector_t::const_iterator itObj =
distanceOuterObjects_.begin ();
itObj != distanceOuterObjects_.end (); ++itObj) {
newBody->distanceOuterObjects_.push_back ((*itObj)->clone (joint));
}
return newBody;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment