From 4d3c5002a88dc7493c805563f48483c71bb782a1 Mon Sep 17 00:00:00 2001 From: brentyi Date: Sat, 9 Nov 2024 14:40:36 -0800 Subject: [PATCH] `0.2.16` --- pyproject.toml | 2 +- src/viser/_scene_api.py | 4 ++-- src/viser/client/src/ControlPanel/SceneTreeTable.tsx | 8 ++++++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 323e88fc..b56890fd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,7 @@ packages = ["src/viser"] [project] name = "viser" -version = "0.2.15" +version = "0.2.16" description = "3D visualization + Python" readme = "README.md" license = { text="MIT" } diff --git a/src/viser/_scene_api.py b/src/viser/_scene_api.py index fc7ebe8f..44405a98 100644 --- a/src/viser/_scene_api.py +++ b/src/viser/_scene_api.py @@ -1147,8 +1147,8 @@ def add_mesh_skinned( name=name, websock_interface=self._websock_interface, bone_index=i, - wxyz=bone_wxyzs[i], - position=bone_positions[i], + wxyz=bone_wxyzs[i].copy(), + position=bone_positions[i].copy(), ) ) for i in range(num_bones) diff --git a/src/viser/client/src/ControlPanel/SceneTreeTable.tsx b/src/viser/client/src/ControlPanel/SceneTreeTable.tsx index d0c4596b..2260fd5c 100644 --- a/src/viser/client/src/ControlPanel/SceneTreeTable.tsx +++ b/src/viser/client/src/ControlPanel/SceneTreeTable.tsx @@ -115,7 +115,11 @@ function EditNodeProps({ }} > - {node.message.type.replace("Message", "")} Props + {node.message.type + .replace("Message", "") + .replace(/([A-Z])/g, " $1") + .trim()}{" "} + Props - Changes will be overwritten by updates from the server. + Updates from the server will overwrite local changes. );