Skip to content

Conversation

@darknight0847
Copy link

…eReferences for mjCSkin and adds prefixingin mjCModel::operator+= to ensure skin bone body names arecorrectly updated when a model is attached.This prevents an 'unknown body' error during compilationof an attached model.Fixes #2923

…eReferences for mjCSkin and adds prefixingin mjCModel::operator+= to ensure skin bone body names arecorrectly updated when a model is attached.This prevents an 'unknown body' error during compilationof an attached model.Fixes google-deepmind#2923
@google-cla
Copy link

google-cla bot commented Nov 8, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

int new_nskin = skins_.size();

// Iterate ONLY over the newly added skins
for (int i = old_nskin; i < new_nskin; ++i) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason why this can't happen in mjCSkin::Namespace?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants