From cfdea23e67ee6020b502d3ff56d485b764830522 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Petr=C3=ADk?= Date: Thu, 15 Dec 2022 11:10:49 +0100 Subject: [PATCH] do not reset camera pose if camera was not modified; it will keep the current camera pose during animation (#13) Co-authored-by: Vladimir Petrik --- src/robomeshcat/scene.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/robomeshcat/scene.py b/src/robomeshcat/scene.py index 2882e92..424ff1b 100644 --- a/src/robomeshcat/scene.py +++ b/src/robomeshcat/scene.py @@ -177,8 +177,6 @@ def _reset_all_properties(self): self.camera_zoom = self._camera_zoom # this will set the starting value of the property if self._camera_pose_modified: self.camera_pose = self._camera_pose - else: - self.reset_camera() """=== Following functions handle the camera control ==="""