From d948e52facb9416981e588198538d0218b1fde58 Mon Sep 17 00:00:00 2001 From: Brent Yi Date: Fri, 31 May 2024 20:18:29 -0700 Subject: [PATCH] Fix 3D gui container edge cases, bump version --- pyproject.toml | 2 +- src/viser/_scene_handles.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 6460faeee..69c0f8e84 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "viser" -version = "0.1.33" +version = "0.1.34" description = "3D visualization + Python" readme = "README.md" license = { text="MIT" } diff --git a/src/viser/_scene_handles.py b/src/viser/_scene_handles.py index a2022d818..63b171404 100644 --- a/src/viser/_scene_handles.py +++ b/src/viser/_scene_handles.py @@ -286,6 +286,6 @@ def remove(self) -> None: super().remove() # Clean up contained GUI elements. - self._gui_api._container_handle_from_id.pop(self._container_id) - for child in self._children.values(): + for child in tuple(self._children.values()): child.remove() + self._gui_api._container_handle_from_id.pop(self._container_id)