Merge pull request #3406 from devshahofficial:agent/pr3157-attach-mjcwrap

PiperOrigin-RevId: 950890116
Change-Id: I95331186f166e84b94c3fcac555c9d446a421010
This commit is contained in:
Copybara-Service
2026-07-20 09:39:43 -07:00
2 changed files with 16 additions and 1 deletions
+2 -1
View File
@@ -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;
}