Blender Git Commit Log

Git Commits -> Revision 81a7bf2

Revision 81a7bf2 by Benoit Bolsee (master)
December 22, 2009, 23:38 (GMT)
BGE: fix more matrix transpose bugs in assignement to game object matrices.

Assignment to KX_GameObject localOrientation and
worldOrientation matrices was assuming row-major matrix
although reading these matrices was returning a column-major
MathUtils object.

The faulty function (PyMatTo) is fixed and all matrices
in python are now assumed column-major.

This function is also used in the following methods:

BL_Shader.setUniformMatrix4()
BL_Shader.setUniformMatrix3()

(No change in scripts if you didn't specify the optional
transpose parameter: the default value is changed so
that column-major matrices are assumed as before.)

KX_Camera.projection_matrix

(assignement to this attribute now requires a column-major
matrix and you must fix your script if you were setting
a value to this attribute.)

Commit Details:

Full Hash: 81a7bf2db9beacf664588acddfe458ed216269f8
SVN Revision: 25531
Parent Commit: c7a471c
Lines Changed: +14, -14

3 Modified Paths:

/source/gameengine/Converter/BL_ActionActuator.cpp (+1, -1) (Diff)
/source/gameengine/Ketsji/BL_Shader.cpp (+2, -2) (Diff)
/source/gameengine/Ketsji/KX_PyMath.h (+11, -11) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021