Skip to content

Commit 5cc2455

Browse files
committed
fix(sim gui): increases max geoms in render gui
fixes Objects disappear in Rendering GUI #168
1 parent d93f10f commit 5cc2455

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/sim/gui_client.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ void GuiClient::render_loop() {
6565
mjv_defaultFreeCamera(this->m, &this->cam);
6666
mjv_defaultOption(&this->opt);
6767
mjv_defaultScene(&this->scn);
68-
mjv_makeScene(this->m, &this->scn, mjFONTSCALE_100);
68+
size_t max_geoms = 2000;
69+
mjv_makeScene(this->m, &this->scn, max_geoms);
6970
mjrRect viewport = {0, 0, 0, 0};
7071
this->platform_ui->RefreshMjrContext(this->m, mjFONTSCALE_100);
7172
this->platform_ui->SetVSync(true);

0 commit comments

Comments
 (0)