Skip to content

Commit

Permalink
Fix button remove in Gaussian test script
Browse files Browse the repository at this point in the history
  • Loading branch information
brentyi committed Aug 5, 2024
1 parent e43b4ac commit ba17c7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/experimental/gaussian_splats.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def _(event: viser.GuiEvent) -> None:
remove_button = server.gui.add_button(f"Remove splat object {i}")

@remove_button.on_click
def _(_, gs_handle=gs_handle) -> None:
def _(_, gs_handle=gs_handle, remove_button=remove_button) -> None:
gs_handle.remove()
remove_button.remove()

Expand Down

0 comments on commit ba17c7c

Please sign in to comment.