blender/source/gameengine
Campbell Barton bce3f7e019 PyAPI Mathutils Vector callbacks, referencing other PyObjects rather then thin wrapping vectors which is crash prone.
in short, vectors can work as if they are thin wrapped but not crash blender if the original data is removed.

* RNA vector's return Mathutils vector types.
* BGE vectors for GameObject's localPosition, worldPosition, localPosition, localScale, worldScale, localInertia.
* Comment USE_MATHUTILS define to disable returning vectors.

Example...

* 2.49... *
 loc = gameOb.worldPosition
 loc[1] = 0
 gameOb.worldPosition = loc

* With vectors... *
 gameOb.worldPosition[1] = 0


* But this wont crash... *
 loc = gameOb.worldPosition
 gameOb.endObject()
 loc[1] = 0 # will raise an error that the objects removed.

This breaks games which assume return values are lists.

Will add this to eulers, matrix and quaternion types later.
2009-06-22 04:26:48 +00:00
..
BlenderRoutines Spring Cleaning 2009-06-21 16:18:38 +00:00
Converter Spring Cleaning 2009-06-21 16:18:38 +00:00
Expressions PyAPI Mathutils Vector callbacks, referencing other PyObjects rather then thin wrapping vectors which is crash prone. 2009-06-22 04:26:48 +00:00
GameLogic svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r20849:20855 2009-06-13 14:07:38 +00:00
GamePlayer Spring Cleaning 2009-06-21 16:18:38 +00:00
Ketsji PyAPI Mathutils Vector callbacks, referencing other PyObjects rather then thin wrapping vectors which is crash prone. 2009-06-22 04:26:48 +00:00
Network 2.50: 2009-06-08 20:08:19 +00:00
Physics Spring Cleaning 2009-06-21 16:18:38 +00:00
PyDoc BGE Action Actuator setChannel() function was broken in a number of ways. 2009-06-16 18:25:48 +00:00
Rasterizer merged from trunk 20741:20848 2009-06-13 11:09:13 +00:00
SceneGraph 2.50: 2009-06-08 20:08:19 +00:00
VideoTexture svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r20855:20928 2009-06-16 14:21:58 +00:00
CMakeLists.txt Spring Cleaning 2009-06-21 16:18:38 +00:00
Makefile Makefile fixes for compiling with new videotexture code. 2008-11-02 18:12:45 +00:00
SConscript Spring Cleaning 2009-06-21 16:18:38 +00:00