Do not namespace the body that contains the frame during mjs_attachFrame.
PiperOrigin-RevId: 730912252 Change-Id: I026993af648766c09d569709d268430207d83169
This commit is contained in:
committed by
Copybara-Service
parent
fbe0990b17
commit
ed7adf3d17
@@ -917,8 +917,10 @@ mjCBody& mjCBody::operator+=(const mjCFrame& other) {
|
||||
CopyList(lights, subtree->lights, fmap, &other);
|
||||
|
||||
if (!model->deepcopy_) {
|
||||
std::string name = subtree->name;
|
||||
subtree->SetModel(model);
|
||||
subtree->NameSpace(other_model);
|
||||
subtree->name = name;
|
||||
}
|
||||
|
||||
int nbodies = (int)subtree->bodies.size();
|
||||
|
||||
Reference in New Issue
Block a user