Merge pull request #425 from aftersomemath:cull-face-flag

PiperOrigin-RevId: 466904386
Change-Id: Icd5515c2bbb8f8f3417501ea43c8e5ae22b32f91
This commit is contained in:
Copybara-Service
2022-08-11 02:44:37 -07:00
7 changed files with 16 additions and 5 deletions
+3 -1
View File
@@ -707,7 +707,9 @@ void makerendering(mj::Simulate* sim, int oldstate) {
mjui_add(&sim->ui0, defOpenGL);
for (i=0; i<mjNRNDFLAG; i++) {
mju::strcpy_arr(defFlag[0].name, mjRNDSTRING[i][0]);
mju::sprintf_arr(defFlag[0].other, " %s", mjRNDSTRING[i][2]);
if (mjRNDSTRING[i][2][0]) {
mju::sprintf_arr(defFlag[0].other, " %s", mjRNDSTRING[i][2]);
}
defFlag[0].pdata = sim->scn.flags + i;
mjui_add(&sim->ui0, defFlag);
}