OGRECave / ogre-meshviewer

Viewer for .mesh and .scene files as consumed by OGRE as well as any format supported by assimp
MIT License
56 stars 13 forks source link

Set YawPitchDist to initial values #41

Closed sercero closed 2 months ago

sercero commented 2 months ago

It is true that we are calling setYawPitchDist() twice, but it is necessary to set an initial value of the camera distance and also it is only the first time.

The diam is computed from the bounding box of the object so that it is at a proper distance.