Skip to content

Commit

Permalink
do not reset camera pose if camera was not modified; it will keep the…
Browse files Browse the repository at this point in the history
… current camera pose during animation (#13)

Co-authored-by: Vladimir Petrik <[email protected]>
  • Loading branch information
petrikvladimir and petrikvladimir authored Dec 15, 2022
1 parent 166f8ba commit cfdea23
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/robomeshcat/scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ==="""

Expand Down

0 comments on commit cfdea23

Please sign in to comment.