Minor style fixes
PiperOrigin-RevId: 872669434 Change-Id: I794173b9fad3a286cbf57d246b2f8672412a0e20
This commit is contained in:
committed by
Copybara-Service
parent
ca0552c83b
commit
8f56d5eefa
@@ -1584,6 +1584,7 @@ void UiEvent(mjuiState* state) {
|
|||||||
|
|
||||||
// rendering section
|
// rendering section
|
||||||
else if (it && it->sectionid==SECT_RENDERING) {
|
else if (it && it->sectionid==SECT_RENDERING) {
|
||||||
|
|
||||||
// only update the camera when the camera itself changed
|
// only update the camera when the camera itself changed
|
||||||
if (it->pdata == &sim->camera) {
|
if (it->pdata == &sim->camera) {
|
||||||
if (sim->camera==0) {
|
if (sim->camera==0) {
|
||||||
@@ -1603,6 +1604,7 @@ void UiEvent(mjuiState* state) {
|
|||||||
sim->cam.fixedcamid = sim->camera - 2;
|
sim->cam.fixedcamid = sim->camera - 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// copy camera spec to clipboard (as MJCF element)
|
// copy camera spec to clipboard (as MJCF element)
|
||||||
if (it->itemid == 3) {
|
if (it->itemid == 3) {
|
||||||
CopyCamera(sim);
|
CopyCamera(sim);
|
||||||
|
|||||||
Reference in New Issue
Block a user