From 620852013ff7769abb4b03938d7d1d8a03b6ed9d Mon Sep 17 00:00:00 2001 From: aclegg3 Date: Tue, 27 Feb 2024 16:57:43 -0800 Subject: [PATCH] missed in merge --- examples/viewer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/viewer.py b/examples/viewer.py index bb37c0061d..4dd222604f 100644 --- a/examples/viewer.py +++ b/examples/viewer.py @@ -1490,7 +1490,7 @@ def mouse_press_event(self, event: Application.MouseEvent) -> None: self.selected_rec = None hit_id = self.mouse_cast_results.hits[0].object_id # right click in look mode to print object information - if hit_id == -1: + if hit_id == habitat_sim.stage_id: print("This is the stage.") else: obj = sutils.get_obj_from_id(self.sim, hit_id)