Skip to content

Commit

Permalink
Fix callback remove for scene node click
Browse files Browse the repository at this point in the history
  • Loading branch information
brentyi committed Nov 21, 2024
1 parent 1585949 commit 4fe9d42
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/viser/_scene_handles.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,11 @@ def remove_click_callback(
_messages.SetSceneNodeClickableMessage(self._impl.name, False)
)

if len(self._impl.click_cb) == 0:
self._impl.api._websock_interface.queue_message(
_messages.SetSceneNodeClickableMessage(self._impl.name, False)
)


class CameraFrustumHandle(
_ClickableSceneNodeHandle,
Expand Down

0 comments on commit 4fe9d42

Please sign in to comment.