Skip to content

Commit 8a511ad

Browse files
committed
fix _tendon_armature
1 parent 7f0b0a1 commit 8a511ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mujoco_warp/_src/smooth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ def _tendon_armature(
908908
if is_sparse: # is_sparse is not batched
909909
madr_ij = dof_Madr[dofid]
910910

911-
armature = tendon_armature[worldid, tenid]
911+
armature = tendon_armature[worldid % tendon_armature.shape[0], tenid]
912912

913913
if armature == 0.0:
914914
return

0 commit comments

Comments
 (0)