Skip to content

Commit

Permalink
more generally handle navmesh recompute skip for "none" scene (#1809)
Browse files Browse the repository at this point in the history
  • Loading branch information
aclegg3 authored Jul 12, 2022
1 parent d58d23f commit 2368f88
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ def __init__(self, sim_settings: Dict[str, Any]) -> None:
self.reconfigure_sim()

# compute NavMesh if not already loaded by the scene.
if not self.sim.pathfinder.is_loaded and self.cfg.sim_cfg.scene_id != "NONE":
if (
not self.sim.pathfinder.is_loaded
and self.cfg.sim_cfg.scene_id.lower() != "none"
):
self.navmesh_config_and_recompute()

self.time_since_last_simulation = 0.0
Expand Down

0 comments on commit 2368f88

Please sign in to comment.