Skip to content

Commit

Permalink
Added int casting on mesh_enabled flag
Browse files Browse the repository at this point in the history
  • Loading branch information
lorycontixd committed Nov 15, 2024
1 parent 9762d80 commit fc251cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jaxsim/parsers/rod/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,8 @@ def extract_model_data(

collisions.append(sphere_collision)

if collision.geometry.mesh is not None and os.environ.get(
"JAXSIM_COLLISION_MESH_ENABLED", "0"
if collision.geometry.mesh is not None and int(
os.environ.get("JAXSIM_COLLISION_MESH_ENABLED", "0")
):
logging.warning("Mesh collision support is still experimental.")
mesh_collision = utils.create_mesh_collision(
Expand Down

0 comments on commit fc251cf

Please sign in to comment.