BGE: Fix T31357: wrong zoom when sets camera.
authorPorteries Tristan <republicthunderbolt9@gmail.com>
Tue, 27 Oct 2015 10:04:04 +0000 (11:04 +0100)
committerPorteries Tristan <republicthunderbolt9@gmail.com>
Tue, 27 Oct 2015 10:10:12 +0000 (11:10 +0100)
commit13a4bcd148bd7a32af8af626f42f7793aca7b7fe
treed2ec1c6cb1fda3223805eb01e2ca3bb3d583fb06
parent95164a09a73b5f72cfb21abfe608dfd0873b7706
BGE: Fix T31357: wrong zoom when sets camera.

This patch makes independant the override camera zoom and the default camera object zoom. The override zoom is 2.0f and the camera object zoom is computed with the RegionView3D camera zoom.
These features are only used for the embedded BGE, so there's no compatibility issues with the blenderplayer.
I let the override zoom with a setter to allow later to create an override camera in blenderplayer easily.

Tested with the 3 framing modes in embedded and standalone.
source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp
source/gameengine/Ketsji/KX_KetsjiEngine.cpp
source/gameengine/Ketsji/KX_KetsjiEngine.h