Fix attached tendon wrap model pointers

This commit is contained in:
devshahofficial
2026-07-16 15:00:57 -07:00
parent 54bf99f116
commit 3e1dffc286
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;
}