mjcb_control respects the mjDSBL_ACTUATION flag

PiperOrigin-RevId: 483339817
Change-Id: I0b74e4c03a129f26b3cf2bb991a46f0a263b254b
This commit is contained in:
Yuval Tassa
2022-10-24 04:15:07 -07:00
committed by Copybara-Service
parent a845223c9e
commit 79dc5056eb
2 changed files with 46 additions and 3 deletions
+1 -1
View File
@@ -760,7 +760,7 @@ void mj_forwardSkip(const mjModel* m, mjData* d, int skipstage, int skipsensor)
}
// acceleration-dependent
if (mjcb_control) {
if (mjcb_control && !mjDISABLED(mjDSBL_ACTUATION)) {
mjcb_control(m, d);
}
mj_fwdActuation(m, d);