Skip to content

Commit

Permalink
resolves RobotLocomotion#1037 . this one was on me
Browse files Browse the repository at this point in the history
  • Loading branch information
RussTedrake committed Apr 26, 2015
1 parent 67e89cd commit 3878e07
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions systems/plants/RigidBodyManipulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,8 @@ void RigidBodyManipulator::compile(void)
if (bodies[i]->hasParent()) {
auto iter = find(bodies.begin()+i+1,bodies.end(),bodies[i]->parent);
if (iter!=bodies.end()) {
bodies.erase(iter);
bodies.insert(bodies.begin()+i,bodies[i]->parent);
auto next_iter = iter+1;
if (next_iter != bodies.end()) bodies.erase(next_iter);
i--;
}
}
Expand Down

0 comments on commit 3878e07

Please sign in to comment.