Skip to content

Commit fa94724

Browse files
committed
Fix URDF scaled mesh re-use
1 parent 8f37ae1 commit fa94724

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xml/xml_urdf.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ mjsGeom* mjXURDF::Geom(XMLElement* geom_elem, mjsBody* pbody, bool collision) {
630630
pmesh->scale[1] = meshscale[1];
631631
pmesh->scale[2] = meshscale[2];
632632
}
633-
mjs_setString(pgeom->meshname, meshname.c_str());
633+
mjs_setString(pgeom->meshname, pmesh->name->c_str());
634634
}
635635

636636
else {

0 commit comments

Comments
 (0)