Set minimum tree slider depth to 0.

PiperOrigin-RevId: 534003561
Change-Id: I42ccd0eab15b5a3c9852f8944c6b191f7999c113
This commit is contained in:
Yuval Tassa
2023-05-22 02:39:11 -07:00
committed by Copybara-Service
parent e338034995
commit bb8044e5f3
+2 -1
View File
@@ -749,11 +749,12 @@ void MakeRenderingSection(mj::Simulate* sim, const mjModel* m, int oldstate) {
// create tree slider
mjuiDef defTree[] = {
{mjITEM_SLIDERINT, "Tree depth", 2, &sim->opt.bvh_depth, "-1 15"},
{mjITEM_SLIDERINT, "Tree depth", 2, &sim->opt.bvh_depth, "0 15"},
{mjITEM_END}
};
mjui_add(&sim->ui0, defTree);
// add rendering flags
mjui_add(&sim->ui0, defOpenGL);
for (int i=0; i<mjNRNDFLAG; i++) {
mju::strcpy_arr(defFlag[0].name, mjRNDSTRING[i][0]);