diff options
author | Benoit Bolsee <benoit.bolsee@online.be> | 2009-12-23 02:38:09 +0300 |
---|---|---|
committer | Benoit Bolsee <benoit.bolsee@online.be> | 2009-12-23 02:38:09 +0300 |
commit | 81a7bf2db9beacf664588acddfe458ed216269f8 (patch) | |
tree | ee1e2ccd88bac50388197d60d731c68f471570ba /source/gameengine/Converter/BL_ActionActuator.cpp | |
parent | c7a471c8c6ed85796f097019d28081f00c2b539a (diff) |
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.)
Diffstat (limited to 'source/gameengine/Converter/BL_ActionActuator.cpp')
-rw-r--r-- | source/gameengine/Converter/BL_ActionActuator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gameengine/Converter/BL_ActionActuator.cpp b/source/gameengine/Converter/BL_ActionActuator.cpp index 1325c80a6d4..dd051d74944 100644 --- a/source/gameengine/Converter/BL_ActionActuator.cpp +++ b/source/gameengine/Converter/BL_ActionActuator.cpp @@ -525,7 +525,7 @@ KX_PYMETHODDEF_DOC(BL_ActionActuator, setChannel, if(!PyMatTo(pymat, mat)) return NULL; - mat.setValue((const float *)matrix); + mat.getValue((float*)matrix); BL_ArmatureObject *obj = (BL_ArmatureObject*)GetParent(); |