@@ -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
@@ -1559,7 +1559,7 @@ def _tendon_dot(
15591559):
15601560 worldid , tenid = wp .tid ()
15611561
1562- armature = tendon_armature [worldid , tenid ]
1562+ armature = tendon_armature [worldid % tendon_armature . shape [ 0 ] , tenid ]
15631563 if armature == 0.0 :
15641564 return
15651565
@@ -1717,7 +1717,7 @@ def _tendon_bias_coef(
17171717):
17181718 worldid , tenid , dofid = wp .tid ()
17191719
1720- armature = tendon_armature [worldid , tenid ]
1720+ armature = tendon_armature [worldid % tendon_armature . shape [ 0 ] , tenid ]
17211721 if armature == 0.0 :
17221722 return
17231723
@@ -1741,7 +1741,7 @@ def _tendon_bias_qfrc(
17411741):
17421742 worldid , tenid , dofid = wp .tid ()
17431743
1744- armature = tendon_armature [worldid , tenid ]
1744+ armature = tendon_armature [worldid % tendon_armature . shape [ 0 ] , tenid ]
17451745 if armature == 0.0 :
17461746 return
17471747
0 commit comments