Skip to content

Commit 28cd5eb

Browse files
sbohezcopybara-github
authored andcommitted
Exclude needstage from triggering dirty physics.
PiperOrigin-RevId: 494890638 Change-Id: Ie68a661e2b57626f9902d8d79523fb5ef86ad0f2
1 parent 3c67a42 commit 28cd5eb

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

dm_control/mjcf/constants.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@
4242
MJDATA_TRIGGERS_DIRTY = [
4343
'qpos', 'qvel', 'act', 'ctrl', 'qfrc_applied', 'xfrc_applied']
4444
MJMODEL_DOESNT_TRIGGER_DIRTY = [
45-
'rgba', 'matid', 'emission', 'specular', 'shininess', 'reflectance']
45+
'rgba', 'matid', 'emission', 'specular', 'shininess', 'reflectance',
46+
'needstage',
47+
]
4648

4749
# When writing into `model.{body,geom,site}_{pos,quat}` we must ensure that the
4850
# corresponding rows in `model.{body,geom,site}_sameframe` are set to zero,

0 commit comments

Comments
 (0)