Merge pull request #3406 from devshahofficial:agent/pr3157-attach-mjcwrap
PiperOrigin-RevId: 950890116 Change-Id: I95331186f166e84b94c3fcac555c9d446a421010
This commit is contained in:
@@ -6451,8 +6451,9 @@ void mjCTendon::CopyFromSpec() {
|
||||
material_ = spec_material_;
|
||||
userdata_ = spec_userdata_;
|
||||
|
||||
// clear precompiled
|
||||
// propagate model pointer to wraps and clear precompiled
|
||||
for (int i=0; i < path.size(); i++) {
|
||||
path[i]->model = model;
|
||||
if (path[i]->Type() == mjWRAP_CYLINDER) {
|
||||
path[i]->spec.type = mjWRAP_SPHERE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user