Skip to content

Commit e6639f1

Browse files
quaglacopybara-github
authored andcommitted
Apply prefix/suffix to flex material names.
PiperOrigin-RevId: 866518766 Change-Id: I5f042f52a27d2a6c66fe9642bccc73328fe14603
1 parent 74d657a commit e6639f1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/user/user_mesh.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4036,6 +4036,9 @@ void mjCFlex::NameSpace(const mjCModel* m) {
40364036
for (auto& name : spec_nodebody_) {
40374037
name = m->prefix + name + m->suffix;
40384038
}
4039+
if (!spec_material_.empty() && model != m) {
4040+
spec_material_ = m->prefix + spec_material_ + m->suffix;
4041+
}
40394042
}
40404043

40414044

0 commit comments

Comments
 (0)