Skip to content

Commit

Permalink
Set YawPitchDist to initial values
Browse files Browse the repository at this point in the history
  • Loading branch information
sercero authored and paroj committed Apr 30, 2024
1 parent 63a3447 commit f945777
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ogre_mesh_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,8 @@ def setup(self):
self.camman = OgreBites.CameraMan(camnode)
self.camman.setStyle(OgreBites.CS_ORBIT)

# We need to set YawPitchDist to initial values, so "diam" is properly set
self.camman.setYawPitchDist(0, self.default_tilt, diam)
self.update_fixed_camera_yaw()

self.input_dispatcher = OgreBites.InputListenerChain([self.getImGuiInputListener(), self.camman, self])
Expand Down

0 comments on commit f945777

Please sign in to comment.