Skip to content

Commit

Permalink
Add method that takes normal String to workaround swig failure to han…
Browse files Browse the repository at this point in the history
…dle SimTK::String for pathname
  • Loading branch information
aymanhab committed Nov 22, 2024
1 parent 736755d commit a3e5fe1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Bindings/simbody.i
Original file line number Diff line number Diff line change
Expand Up @@ -354,5 +354,11 @@ namespace SimTK {
return key;
}
}
%extend PolygonalMesh {
void loadFile(const std::string& pathname) {
// SWIG cant handle SimTK::String despite autoconversion
$self->loadFile(pathname);
}
}
}

0 comments on commit a3e5fe1

Please sign in to comment.