From f94577780f23b4d1f8c2086ebb75e17d4995ef20 Mon Sep 17 00:00:00 2001 From: sercero Date: Sat, 27 Apr 2024 18:10:01 -0300 Subject: [PATCH] Set YawPitchDist to initial values --- ogre_mesh_viewer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ogre_mesh_viewer.py b/ogre_mesh_viewer.py index 277171a..ad47fbc 100755 --- a/ogre_mesh_viewer.py +++ b/ogre_mesh_viewer.py @@ -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])