Skip to content

Commit 9e473b2

Browse files
authored
Revert "contact constraint dof traversal early termination (google-deepmind#1209)" (google-deepmind#1224)
This reverts commit aa18f7f.
1 parent aa18f7f commit 9e473b2

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

mujoco_warp/_src/constraint.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1839,9 +1839,6 @@ def _contact_pyramidal(
18391839
da2 = dof_parentid[da2]
18401840
da = wp.max(da1, da2)
18411841
if is_sparse:
1842-
# early termination: remaining DOFs have zero Jacobian difference
1843-
if da1 == da2 and da1 >= 0:
1844-
break
18451842
dofid = da
18461843
else:
18471844
dofid -= 1
@@ -2064,9 +2061,6 @@ def _contact_elliptic(
20642061
da2 = dof_parentid[da2]
20652062
da = wp.max(da1, da2)
20662063
if is_sparse:
2067-
# early termination: remaining DOFs have zero Jacobian difference
2068-
if da1 == da2 and da1 >= 0:
2069-
break
20702064
dofid = da
20712065
else:
20722066
dofid -= 1

0 commit comments

Comments
 (0)