Blender Git Loki

Git Commits -> Revision 465a5d2

Revision 465a5d2 by Thomas Szepe (master)
April 10, 2015, 18:20 (GMT)
BGE : Fix T43800: getScreenVect()/getScreenPosition()/modelview_matrix returns incorrect results

The getScreenVect(), getScreenPosition() and modelview_matrixmethod returns an incorrect results if called after the camera has been translated on the same frame.
The model view matrix will be update only once per frame with Cam->SetModelviewMatrix in KX_KetsjiEngine::RenderFrame.
Using GetWorldToCamera as model view matrix to get an actual view matrix even if the camera is moved.

Reviewers: sergey, dfelinto, brita_, sybren, hg1, campbellbarton

Reviewed By: hg1, campbellbarton

Projects: #game_engine

Differential Revision:

Commit Details:

Full Hash: 465a5d29c0333f5bd5847f3febdd12f4b2746d0b
Parent Commit: 35812e6
Lines Changed: +4, -4

Tehnyt: Miika HämäläinenViimeksi p?ivitetty: 07.11.2014 14:18 MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2020