blender/source/gameengine/Ketsji
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
..
KXNetwork 2.50: 2009-06-08 20:08:19 +00:00
BL_BlenderShader.cpp 2.50: 2009-06-08 20:08:19 +00:00
BL_BlenderShader.h 2.50: 2009-06-08 20:08:19 +00:00
BL_Material.cpp 2.50: 2009-06-08 20:08:19 +00:00
BL_Material.h 2.50: 2009-06-08 20:08:19 +00:00
BL_Shader.cpp 2.50: 2009-06-08 20:08:19 +00:00
BL_Shader.h 2.50: 2009-06-08 20:08:19 +00:00
BL_Texture.cpp BGE Python API 2009-02-19 13:42:07 +00:00
BL_Texture.h Preparation to VideoTexture: everything but the VideoTexture module itself. 2008-10-31 21:06:48 +00:00
CMakeLists.txt 2.5 2009-06-18 19:25:58 +00:00
KX_BlenderMaterial.cpp 2.50: 2009-06-08 20:08:19 +00:00
KX_BlenderMaterial.h 2.50: 2009-06-08 20:08:19 +00:00
KX_BulletPhysicsController.cpp 2.50: 2009-06-08 20:08:19 +00:00
KX_BulletPhysicsController.h 2.50: 2009-06-08 20:08:19 +00:00
KX_Camera.cpp use contains for ListValue and KX_GameObject types (has_key is deprecated by python) 2009-06-12 12:56:12 +00:00
KX_Camera.h 2.50: 2009-06-08 20:08:19 +00:00
KX_CameraActuator.cpp 2.50: 2009-06-08 20:08:19 +00:00
KX_CameraActuator.h 2.50: 2009-06-08 20:08:19 +00:00
KX_CameraIpoSGController.cpp Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
KX_CameraIpoSGController.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
KX_CDActuator.cpp 2.50: 2009-06-08 20:08:19 +00:00
KX_CDActuator.h 2.50: 2009-06-08 20:08:19 +00:00
KX_ClientObjectInfo.h Spring Cleaning 2009-06-21 16:18:38 +00:00
KX_ConstraintActuator.cpp 2.50: 2009-06-08 20:08:19 +00:00
KX_ConstraintActuator.h 2.50: 2009-06-08 20:08:19 +00:00
KX_ConstraintWrapper.cpp 2.50: 2009-06-08 20:08:19 +00:00
KX_ConstraintWrapper.h 2.50: 2009-06-08 20:08:19 +00:00
KX_ConvertPhysicsObject.h Spring Cleaning 2009-06-21 16:18:38 +00:00
KX_ConvertPhysicsObjects.cpp Spring Cleaning 2009-06-21 16:18:38 +00:00
KX_Dome.cpp 2.50: 2009-06-08 20:08:19 +00:00
KX_Dome.h 2.50: 2009-06-08 20:08:19 +00:00
KX_EmptyObject.cpp Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
KX_EmptyObject.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
KX_GameActuator.cpp 2.50: 2009-06-08 20:08:19 +00:00
KX_GameActuator.h 2.50: 2009-06-08 20:08:19 +00:00
KX_GameObject.cpp PyAPI Mathutils Vector callbacks, referencing other PyObjects rather then thin wrapping vectors which is crash prone. 2009-06-22 04:26:48 +00:00
KX_GameObject.h PyAPI Mathutils Vector callbacks, referencing other PyObjects rather then thin wrapping vectors which is crash prone. 2009-06-22 04:26:48 +00:00
KX_IInterpolator.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
KX_IPhysicsController.cpp 2.50: 2009-06-08 20:08:19 +00:00
KX_IPhysicsController.h 2.50: 2009-06-08 20:08:19 +00:00
KX_IPO_SGController.cpp 2.50: 2009-06-08 20:08:19 +00:00
KX_IPO_SGController.h BGE bug #17657 fixed: dRotY doesn't work properly after 90 degrees rotation. 2008-09-23 20:07:15 +00:00
KX_IpoActuator.cpp 2.50: 2009-06-08 20:08:19 +00:00
KX_IpoActuator.h 2.50: 2009-06-08 20:08:19 +00:00
KX_IPOTransform.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
KX_IScalarInterpolator.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
KX_ISceneConverter.h Merge of first part of changes from the apricot branch, especially 2008-09-04 20:51:28 +00:00
KX_ISystem.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
KX_KetsjiEngine.cpp Spring Cleaning 2009-06-21 16:18:38 +00:00
KX_KetsjiEngine.h fix for bug #18898: GE perspective 3D View not working properly (missing LENS) 2009-06-09 22:56:43 +00:00
KX_Light.cpp use contains for ListValue and KX_GameObject types (has_key is deprecated by python) 2009-06-12 12:56:12 +00:00
KX_Light.h Fix for bug #18900: game engine lights in non-glsl mode did move 2009-06-09 13:51:32 +00:00
KX_LightIpoSGController.cpp Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
KX_LightIpoSGController.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
KX_MaterialIpoController.cpp Win64: please check my changes if you ran across them ;) But should be fine since no additional crashes were reported! 2008-08-17 17:08:00 +00:00
KX_MaterialIpoController.h BGE patch: approve patch #17312: Multiple material IPOs per mesh in BGE. 2008-07-25 13:45:57 +00:00
KX_MeshProxy.cpp 2.50: 2009-06-08 20:08:19 +00:00
KX_MeshProxy.h 2.50: 2009-06-08 20:08:19 +00:00
KX_MotionState.cpp 2.50: 2009-06-08 20:08:19 +00:00
KX_MotionState.h 2.50: 2009-06-08 20:08:19 +00:00
KX_MouseFocusSensor.cpp 2.50: 2009-06-08 20:08:19 +00:00
KX_MouseFocusSensor.h 2.50: 2009-06-08 20:08:19 +00:00
KX_NearSensor.cpp 2.50: 2009-06-08 20:08:19 +00:00
KX_NearSensor.h 2.50: 2009-06-08 20:08:19 +00:00
KX_ObColorIpoSGController.cpp Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
KX_ObColorIpoSGController.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
KX_ObjectActuator.cpp 2.50: 2009-06-08 20:08:19 +00:00
KX_ObjectActuator.h 2.50: 2009-06-08 20:08:19 +00:00
KX_OrientationInterpolator.cpp Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
KX_OrientationInterpolator.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
KX_ParentActuator.cpp 2.50: 2009-06-08 20:08:19 +00:00
KX_ParentActuator.h 2.50: 2009-06-08 20:08:19 +00:00
KX_PhysicsEngineEnums.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
KX_PhysicsObjectWrapper.cpp 2.50: 2009-06-08 20:08:19 +00:00
KX_PhysicsObjectWrapper.h 2.50: 2009-06-08 20:08:19 +00:00
KX_PhysicsPropertiesobsolete.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
KX_PolygonMaterial.cpp 2.50: 2009-06-08 20:08:19 +00:00
KX_PolygonMaterial.h 2.50: 2009-06-08 20:08:19 +00:00
KX_PolyProxy.cpp 2.50: 2009-06-08 20:08:19 +00:00
KX_PolyProxy.h 2.50: 2009-06-08 20:08:19 +00:00
KX_PositionInterpolator.cpp Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
KX_PositionInterpolator.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
KX_PyConstraintBinding.cpp BGE Py API 2009-06-16 07:16:51 +00:00
KX_PyConstraintBinding.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
KX_PyMath.cpp 2.50: 2009-06-08 20:08:19 +00:00
KX_PyMath.h 2.50: 2009-06-08 20:08:19 +00:00
KX_PythonInit.cpp Some generic modules from blender 2.4x building with py3k and mostly working. 2009-06-17 20:33:34 +00:00
KX_PythonInit.h 2.50: 2009-06-08 20:08:19 +00:00
KX_PythonInitTypes.cpp PyAPI Mathutils Vector callbacks, referencing other PyObjects rather then thin wrapping vectors which is crash prone. 2009-06-22 04:26:48 +00:00
KX_PythonInitTypes.h 2.50: svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r19323:HEAD 2009-04-20 15:06:46 +00:00
KX_PythonSeq.cpp KX_PythonSeq (used for a number of BGE sequence types) 2009-06-16 08:52:04 +00:00
KX_PythonSeq.h 2.50: 2009-06-08 20:08:19 +00:00
KX_RadarSensor.cpp 2.50: 2009-06-08 20:08:19 +00:00
KX_RadarSensor.h 2.50: 2009-06-08 20:08:19 +00:00
KX_RayCast.cpp 2.50: svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r19323:HEAD 2009-04-20 15:06:46 +00:00
KX_RayCast.h BGE patch: KX_GameObject::rayCast() improvements to have X-Ray option, return true face normal and hit polygon information. 2008-08-27 19:34:19 +00:00
KX_RayEventManager.cpp 2.50: 2009-06-08 20:08:19 +00:00
KX_RayEventManager.h BGE patch: logic optimization part 2: remove inactive sensors from logic manager. 2008-07-30 17:41:47 +00:00
KX_RaySensor.cpp 2.50: 2009-06-08 20:08:19 +00:00
KX_RaySensor.h 2.50: 2009-06-08 20:08:19 +00:00
KX_SCA_AddObjectActuator.cpp 2.50: 2009-06-08 20:08:19 +00:00
KX_SCA_AddObjectActuator.h 2.50: 2009-06-08 20:08:19 +00:00
KX_SCA_DynamicActuator.cpp 2.50: 2009-06-08 20:08:19 +00:00
KX_SCA_DynamicActuator.h 2.50: 2009-06-08 20:08:19 +00:00
KX_SCA_EndObjectActuator.cpp 2.50: 2009-06-08 20:08:19 +00:00
KX_SCA_EndObjectActuator.h 2.50: 2009-06-08 20:08:19 +00:00
KX_SCA_ReplaceMeshActuator.cpp 2.50: 2009-06-08 20:08:19 +00:00
KX_SCA_ReplaceMeshActuator.h 2.50: 2009-06-08 20:08:19 +00:00
KX_ScalarInterpolator.cpp Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
KX_ScalarInterpolator.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
KX_ScalingInterpolator.cpp Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
KX_ScalingInterpolator.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
KX_Scene.cpp 2.50: 2009-06-08 20:08:19 +00:00
KX_Scene.h 2.50: 2009-06-08 20:08:19 +00:00
KX_SceneActuator.cpp 2.50: 2009-06-08 20:08:19 +00:00
KX_SceneActuator.h 2.50: 2009-06-08 20:08:19 +00:00
KX_SG_BoneParentNodeRelationship.cpp 2.50: 2009-06-08 20:08:19 +00:00
KX_SG_BoneParentNodeRelationship.h 2.50: svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r19323:HEAD 2009-04-20 15:06:46 +00:00
KX_SG_NodeRelationships.cpp 2.50: 2009-06-08 20:08:19 +00:00
KX_SG_NodeRelationships.h 2.50: svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r19323:HEAD 2009-04-20 15:06:46 +00:00
KX_SoundActuator.cpp Sound actuator bug reported by zapman on blenderartist. 2009-06-11 10:26:53 +00:00
KX_SoundActuator.h 2.50: 2009-06-08 20:08:19 +00:00
KX_StateActuator.cpp 2.50: 2009-06-08 20:08:19 +00:00
KX_StateActuator.h 2.50: 2009-06-08 20:08:19 +00:00
KX_TimeCategoryLogger.cpp Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
KX_TimeCategoryLogger.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
KX_TimeLogger.cpp Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
KX_TimeLogger.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
KX_TouchEventManager.cpp 2.50: 2009-06-08 20:08:19 +00:00
KX_TouchEventManager.h BGE patch: logic optimization part 2: remove inactive sensors from logic manager. 2008-07-30 17:41:47 +00:00
KX_TouchSensor.cpp 2.50: 2009-06-08 20:08:19 +00:00
KX_TouchSensor.h 2.50: 2009-06-08 20:08:19 +00:00
KX_TrackToActuator.cpp 2.50: 2009-06-08 20:08:19 +00:00
KX_TrackToActuator.h 2.50: 2009-06-08 20:08:19 +00:00
KX_VehicleWrapper.cpp 2.50: 2009-06-08 20:08:19 +00:00
KX_VehicleWrapper.h 2.50: 2009-06-08 20:08:19 +00:00
KX_VertexProxy.cpp 2.50: 2009-06-08 20:08:19 +00:00
KX_VertexProxy.h 2.50: 2009-06-08 20:08:19 +00:00
KX_VisibilityActuator.cpp 2.50: 2009-06-08 20:08:19 +00:00
KX_VisibilityActuator.h 2.50: 2009-06-08 20:08:19 +00:00
KX_WorldInfo.cpp Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
KX_WorldInfo.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
KX_WorldIpoController.cpp Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
KX_WorldIpoController.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
Makefile Spring Cleaning 2009-06-21 16:18:38 +00:00
SConscript Spring Cleaning 2009-06-21 16:18:38 +00:00