Cull face flag

This commit is contained in:
Levi Burner
2022-08-04 19:16:50 -04:00
parent 7a0e0ed80c
commit 581f009c02
7 changed files with 16 additions and 5 deletions
+3 -1
View File
@@ -706,7 +706,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);
}