Skip to content

Commit c4355ca

Browse files
committed
chg: moves load error print in UI to bottom center
1 parent 950f897 commit c4355ca

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mujoco_ros/src/viewer.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -2390,8 +2390,7 @@ void Viewer::Render()
23902390

23912391
// Show last loading error
23922392
if (this->load_error[0]) {
2393-
mjr_overlay(mjFONT_NORMAL, mjGRID_BOTTOMLEFT, rect, this->load_error, nullptr,
2394-
&this->platform_ui->mjr_context());
2393+
mjr_overlay(mjFONT_NORMAL, mjGRID_BOTTOM, rect, this->load_error, nullptr, &this->platform_ui->mjr_context());
23952394
}
23962395

23972396
// render UIs
@@ -2483,7 +2482,7 @@ void Viewer::Render()
24832482

24842483
// Show last loading error
24852484
if (this->load_error[0]) {
2486-
mjr_overlay(mjFONT_NORMAL, mjGRID_BOTTOMLEFT, rect, this->load_error, nullptr, &this->platform_ui->mjr_context());
2485+
mjr_overlay(mjFONT_NORMAL, mjGRID_BOTTOM, rect, this->load_error, nullptr, &this->platform_ui->mjr_context());
24872486
}
24882487

24892488
// show pause/loading label

0 commit comments

Comments
 (0)