Blender Git Loki

Git Commits -> Revision 5c93e75

Revision 5c93e75 by Campbell Barton (master)
July 4, 2008, 00:05 (GMT)
non user visible changes and small optimizations to the game engine pyapi as well as fixing some bugs.
* 2 returning errors without exception set another return None instead of NULL.
* a missing check for parent relation
* BPY matrix length was incorrect in matrix.c, this change could break some scripts, however when a script expects a list of lists for a matrix, the len() function is incorrect and will give an error. This was the only thing stopping apricot game logic running in trunk.

Also added a function for GameObjects - getAxisVect(vec), multiplies the vector be the objects worldspace rotation matrix. Very useful if you want to know what the forward direction is for an object and dont want to use Blender.Mathutils which is tedious and not available in BlenderPlayer yet.

Commit Details:

Full Hash: 5c93e756823cda49466ce7e546268d551fb7de2f
SVN Revision: 15420
Parent Commit: 70c33ec
Lines Changed: +235, -290

7 Modified Paths:

/source/blender/python/api2_2x/matrix.c (+1, -1) (Diff)
/source/gameengine/Expressions/PyObjectPlus.h (+27, -0) (Diff)
/source/gameengine/GameLogic/SCA_PythonController.cpp (+29, -50) (Diff)
/source/gameengine/GameLogic/SCA_PythonController.h (+9, -12) (Diff)
/source/gameengine/Ketsji/KX_GameObject.cpp (+135, -191) (Diff)
/source/gameengine/Ketsji/KX_GameObject.h (+22, -35) (Diff)
/source/gameengine/PyDoc/KX_GameObject.py (+12, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021