From c6ab23d6b40d5f609576f3b429e770dd2b80f3e5 Mon Sep 17 00:00:00 2001 From: Nimrod Gileadi Date: Fri, 17 Mar 2023 11:50:14 -0700 Subject: [PATCH] Add a missing mjITEM_END when creating the UI for the collision tree. This fixes #774. PiperOrigin-RevId: 517469175 Change-Id: I24a127c59f4a8dd7a5b306558425b90a80ec44f3 --- simulate/simulate.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/simulate/simulate.cc b/simulate/simulate.cc index 73bcb40b..63431bb2 100644 --- a/simulate/simulate.cc +++ b/simulate/simulate.cc @@ -713,7 +713,8 @@ void makerendering(mj::Simulate* sim, int oldstate) { // create tree slider sim->m->vis.global.treedepth = 0; - mjuiDef defTree[] = {{mjITEM_SLIDERINT, "Tree depth", 2, &sim->m->vis.global.treedepth, "-1 15"}}; + mjuiDef defTree[] = {{mjITEM_SLIDERINT, "Tree depth", 2, &sim->m->vis.global.treedepth, "-1 15"}, + {mjITEM_END}}; mjui_add(&sim->ui0, defTree); mjui_add(&sim->ui0, defOpenGL);