Blender Git Loki
Git Commits -> Revision 5488175
Revision 5488175 by Campbell Barton (master) February 23, 2009, 06:41 (GMT) |
BGE Python API * fixed segfaults in CListValue.index(val) and CListValue.count(val) when the pyTypes could not be converted into a CValue. * added scene.objects to replace scene.getObjectList() * added function names to PyArg_ParseTuple() so errors will include the function names * removed cases of PyArg_ParseTuple(args,"O",&pyobj) where METH_O ensures a single argument. * Made PyObjectFrom use ugly python api rather then Py_BuildValue(), approx %40 speedup for functions that return Python vector and matrix types like ob.orientation. |
Commit Details:
Full Hash: 5488175d0bc79b07fd3fb0f279323b4f33487b5f
SVN Revision: 19088
Parent Commit: 1c088b4
Lines Changed: +292, -320
13 Modified Paths:
/source/gameengine/Expressions/ListValue.cpp (+36, -55) (Diff)
/source/gameengine/Expressions/ListValue.h (+4, -4) (Diff)
/source/gameengine/Ketsji/KX_Camera.cpp (+52, -65) (Diff)
/source/gameengine/Ketsji/KX_Camera.h (+10, -10) (Diff)
/source/gameengine/Ketsji/KX_GameObject.cpp (+27, -37) (Diff)
/source/gameengine/Ketsji/KX_GameObject.h (+2, -2) (Diff)
/source/gameengine/Ketsji/KX_PyMath.cpp (+57, -0) (Diff)
/source/gameengine/Ketsji/KX_PyMath.h (+0, -14) (Diff)
/source/gameengine/Ketsji/KX_PythonInit.cpp (+19, -19) (Diff)
/source/gameengine/Ketsji/KX_Scene.cpp (+13, -15) (Diff)
/source/gameengine/Ketsji/KX_Scene.h (+3, -3) (Diff)
/source/gameengine/Ketsji/KX_VertexProxy.cpp (+59, -86) (Diff)
/source/gameengine/Ketsji/KX_VertexProxy.h (+10, -10) (Diff)
/source/gameengine/Expressions/ListValue.h (+4, -4) (Diff)
/source/gameengine/Ketsji/KX_Camera.cpp (+52, -65) (Diff)
/source/gameengine/Ketsji/KX_Camera.h (+10, -10) (Diff)
/source/gameengine/Ketsji/KX_GameObject.cpp (+27, -37) (Diff)
/source/gameengine/Ketsji/KX_GameObject.h (+2, -2) (Diff)
/source/gameengine/Ketsji/KX_PyMath.cpp (+57, -0) (Diff)
/source/gameengine/Ketsji/KX_PyMath.h (+0, -14) (Diff)
/source/gameengine/Ketsji/KX_PythonInit.cpp (+19, -19) (Diff)
/source/gameengine/Ketsji/KX_Scene.cpp (+13, -15) (Diff)
/source/gameengine/Ketsji/KX_Scene.h (+3, -3) (Diff)
/source/gameengine/Ketsji/KX_VertexProxy.cpp (+59, -86) (Diff)
/source/gameengine/Ketsji/KX_VertexProxy.h (+10, -10) (Diff)