Skip to content

Commit 9fe6c50

Browse files
btabacopybara-github
authored andcommitted
Copybara import of the project:
-- 1c806d3 by btaba <[email protected]>: Fix #79. COPYBARA_INTEGRATE_REVIEW=#107 from btaba:btaba-patch-3 1c806d3 PiperOrigin-RevId: 746206096 Change-Id: Ie3643377935504bf417303e8cf9ede9a4ab45900
1 parent 059188d commit 9fe6c50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mujoco_playground/_src/mjx_env.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ def render_array(
316316
):
317317
"""Renders a trajectory as an array of images."""
318318
renderer = mujoco.Renderer(mj_model, height=height, width=width)
319-
camera = camera or -1
319+
camera = camera if camera is not None else -1
320320

321321
if hfield_data is not None:
322322
mj_model.hfield_data = hfield_data.reshape(mj_model.hfield_data.shape)

0 commit comments

Comments
 (0)