Skip to content

Commit e665060

Browse files
committed
tendon_frictionloss one read in _efc_friction_tendon
1 parent f01eea9 commit e665060

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mujoco_warp/_src/constraint.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,8 @@ def _efc_friction_tendon(
527527
):
528528
worldid, tenid = wp.tid()
529529

530-
if tendon_frictionloss[worldid, tenid] <= 0.0:
530+
frictionloss = tendon_frictionloss[worldid, tenid]
531+
if frictionloss <= 0.0:
531532
return
532533

533534
efcid = wp.atomic_add(nefc_out, 0, 1)
@@ -553,7 +554,7 @@ def _efc_friction_tendon(
553554
tendon_solimp_fri[worldid, tenid],
554555
0.0,
555556
Jqvel,
556-
tendon_frictionloss[worldid, tenid],
557+
frictionloss,
557558
tenid,
558559
efc_id_out,
559560
efc_pos_out,

0 commit comments

Comments
 (0)