Correct shortening of camera name in simulate.cc (for UI menu item)
Fixes #963 PiperOrigin-RevId: 545187656 Change-Id: Ib213d693569d884915fba99f150df4fd5f53984c
This commit is contained in:
committed by
Copybara-Service
parent
a36cb0ce3f
commit
906a8e8b27
@@ -703,7 +703,7 @@ void MakeRenderingSection(mj::Simulate* sim, const mjModel* m, int oldstate) {
|
||||
// add model cameras, up to UI limit
|
||||
for (int i=0; i<mjMIN(m->ncam, mjMAXUIMULTI-2); i++) {
|
||||
// prepare name
|
||||
char camname[mjMAXUITEXT] = "\n";
|
||||
char camname[mjMAXUINAME] = "\n";
|
||||
if (m->names[m->name_camadr[i]]) {
|
||||
mju::strcat_arr(camname, m->names+m->name_camadr[i]);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user