Permalink
Browse files

Use body getter in Joint copy constructor.

  • Loading branch information...
1 parent b89072d commit 9882afe851ed381f7fc22e2c0d1019d84ac2942b Antonio El Khoury committed Oct 15, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/joint.cc
View
@@ -145,10 +145,7 @@ namespace ard
jacobian_ = joint.jacobianJointWrtConfig ();
- if (joint.linkedBody ())
- getPtrFromBase (linkedBody_, joint.linkedBody ());
- else
- linkedBody_.reset ();
+ joint.linkedBody (linkedBody_);
}
Joint::~Joint ()

0 comments on commit 9882afe

Please sign in to comment.