blender/source/gameengine/Ketsji
Sybren A. Stüvel ba5807c271 BGE: added bge.logic.{get,set}AnimRecordFrame functions
By using getAnimRecordFrame(), game developers have access to the frame
number used by the "Record animation" feature. This enables them to
record additional information in Blender's F-Curves and ensuring perfect
synchronization with the information already recorded by Blender.

The setAnimRecordFrame() can be used to change the frame number at which
animations are recorded, for example to introduce delays the recording that
do not require delays in the actual game/simulation run.

The getter/setter functions in KX_KetsjiEngine are not directly named after
property they access (m_currentFrame). I found "current frame" to be too
vague for a public interface, hence chose a more descriptive name.

Reviewers: moguri, hg1, campbellbarton, panzergame, aligorith

Reviewed By: panzergame, aligorith

Differential Revision: https://developer.blender.org/D1449
2015-08-25 13:42:09 +02:00
..
KXNetwork BGE Clean-up: New EXP prefix for the BGE Expression module 2015-07-12 16:58:12 +02:00
BL_Action.cpp BGE: Added getActionName() function to KX_GameObject() 2015-08-04 00:10:33 +02:00
BL_Action.h BGE: Added getActionName() function to KX_GameObject() 2015-08-04 00:10:33 +02:00
BL_ActionManager.cpp BGE: Added getActionName() function to KX_GameObject() 2015-08-04 00:10:33 +02:00
BL_ActionManager.h BGE: Added getActionName() function to KX_GameObject() 2015-08-04 00:10:33 +02:00
BL_BlenderShader.cpp OpenSubdiv: Commit of OpenSubdiv integration into Blender 2015-07-20 22:29:26 +02:00
BL_BlenderShader.h Fix a few compiler warnings reported by clang. 2013-08-18 14:15:51 +00:00
BL_Material.cpp Move from MTFace to MTexPoly w/ texture checks 2015-07-14 22:36:00 +10:00
BL_Material.h Move from MTFace to MTexPoly w/ texture checks 2015-07-14 22:36:00 +10:00
BL_Shader.cpp Ghost Context Refactor 2014-10-07 15:47:32 -05:00
BL_Shader.h BGE Clean-up: New EXP prefix for the BGE Expression module 2015-07-12 16:58:12 +02:00
BL_Texture.cpp BGE: Fix T37074: GLSL max texture units limit 2015-07-27 20:34:13 +02:00
BL_Texture.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
CMakeLists.txt Audaspace: fixing problems for the merge to master suggested by Campbell and Sergey. 2015-07-28 14:01:53 +02:00
KX_ArmatureSensor.cpp style cleanup 2013-03-18 11:44:56 +00:00
KX_ArmatureSensor.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
KX_BlenderMaterial.cpp Move from MTFace to MTexPoly w/ texture checks 2015-07-14 22:36:00 +10:00
KX_BlenderMaterial.h Move from MTFace to MTexPoly w/ texture checks 2015-07-14 22:36:00 +10:00
KX_Camera.cpp BGE Clean-up: New EXP prefix for the BGE Expression module 2015-07-12 16:58:12 +02:00
KX_Camera.h BGE Clean-up: New EXP prefix for the BGE Expression module 2015-07-12 16:58:12 +02:00
KX_CameraActuator.cpp BGE Clean-up: New EXP prefix for the BGE Expression module 2015-07-12 16:58:12 +02:00
KX_CameraActuator.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
KX_CameraIpoSGController.cpp remove $Id: tags after discussion on the mailign list: http://markmail.org/message/fp7ozcywxum3ar7n 2011-10-23 17:52:20 +00:00
KX_CameraIpoSGController.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
KX_CharacterWrapper.cpp BGE: Cleaning up the BGE's physics code and removing KX_IPhysicsController and KX_BulletPhysicsController. Instead, we just use PHY_IPhysicsController, which removes a lot of duplicate code. 2013-11-04 19:22:47 +00:00
KX_CharacterWrapper.h BGE Clean-up: New EXP prefix for the BGE Expression module 2015-07-12 16:58:12 +02:00
KX_ClientObjectInfo.h BGE: Fix T35288 Touch/Ray/Mouse sensor and Constraint actuator with material check doesn't work. 2015-07-25 09:43:06 +02:00
KX_ConstraintActuator.cpp BGE: Fix T35288 Touch/Ray/Mouse sensor and Constraint actuator with material check doesn't work. 2015-07-25 09:43:06 +02:00
KX_ConstraintActuator.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
KX_ConstraintWrapper.cpp BGE Clean-up: New EXP prefix for the BGE Expression module 2015-07-12 16:58:12 +02:00
KX_ConstraintWrapper.h BGE Clean-up: New EXP prefix for the BGE Expression module 2015-07-12 16:58:12 +02:00
KX_Dome.cpp BGE: Fix T45110, T44174, armature animations update and mirror render. 2015-06-22 18:16:31 +02:00
KX_Dome.h Ghost Context Refactor 2014-10-07 15:47:32 -05:00
KX_EmptyObject.cpp remove $Id: tags after discussion on the mailign list: http://markmail.org/message/fp7ozcywxum3ar7n 2011-10-23 17:52:20 +00:00
KX_EmptyObject.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
KX_FontObject.cpp BGE Clean-up: New EXP prefix for the BGE Expression module 2015-07-12 16:58:12 +02:00
KX_FontObject.h fix D1130 renamed the enum OBJ_FONT to OBJ_TEXT to avoid naming conflicts in Windows 2015-03-16 18:46:40 +01:00
KX_GameActuator.cpp BGE: correct ftell use in LoadGlobalDict 2015-06-05 11:16:46 +10:00
KX_GameActuator.h quiet double promotion warnings for the game engine. 2012-07-18 23:03:27 +00:00
KX_GameObject.cpp BGE: Fix T19377 restore dynamics after unparenting object. 2015-08-10 17:08:11 +02:00
KX_GameObject.h BGE: Added getActionName() function to KX_GameObject() 2015-08-04 00:10:33 +02:00
KX_IInterpolator.h style cleanup 2012-09-16 04:58:18 +00:00
KX_IPO_SGController.cpp BGE: Cleaning up the BGE's physics code and removing KX_IPhysicsController and KX_BulletPhysicsController. Instead, we just use PHY_IPhysicsController, which removes a lot of duplicate code. 2013-11-04 19:22:47 +00:00
KX_IPO_SGController.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
KX_IpoActuator.cpp BGE Clean-up: New EXP prefix for the BGE Expression module 2015-07-12 16:58:12 +02:00
KX_IpoActuator.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
KX_IpoConvert.cpp BGE: Adding material IPO support to GLSL materials 2015-05-11 23:05:04 -07:00
KX_IpoConvert.h BGE: Fix T27322: World F-Curve 2015-03-23 21:43:42 +01:00
KX_IPOTransform.h style cleanup 2012-10-29 02:11:40 +00:00
KX_IScalarInterpolator.h style cleanup 2012-09-16 04:58:18 +00:00
KX_ISceneConverter.h BGE Clean-up: New EXP prefix for the BGE Expression module 2015-07-12 16:58:12 +02:00
KX_ISystem.h optionally use guarded alloc for tiles compositor, also replace allocation functions with a macro. 2012-06-25 09:14:37 +00:00
KX_KetsjiEngine.cpp BGE: added bge.logic.{get,set}AnimRecordFrame functions 2015-08-25 13:42:09 +02:00
KX_KetsjiEngine.h BGE: added bge.logic.{get,set}AnimRecordFrame functions 2015-08-25 13:42:09 +02:00
KX_Light.cpp BGE : addObject in python without reference object. 2015-04-26 16:29:58 +02:00
KX_Light.h BGE : addObject in python without reference object. 2015-04-26 16:29:58 +02:00
KX_LightIpoSGController.cpp BGE code cleanup: Removing OpenGL and bf_gpu code from KX_LightObject 2014-03-27 22:32:06 -07:00
KX_LightIpoSGController.h Code cleanup: RAS_ILightObject is class, not a struct. 2014-04-12 20:12:07 +02:00
KX_MaterialIpoController.cpp BGE: Adding material IPO support to GLSL materials 2015-05-11 23:05:04 -07:00
KX_MaterialIpoController.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
KX_MeshProxy.cpp BGE Clean-up: New EXP prefix for the BGE Expression module 2015-07-12 16:58:12 +02:00
KX_MeshProxy.h style cleanup 2013-03-29 06:21:28 +00:00
KX_MotionState.cpp BGE: Cleaning up the BGE's physics code and removing KX_IPhysicsController and KX_BulletPhysicsController. Instead, we just use PHY_IPhysicsController, which removes a lot of duplicate code. 2013-11-04 19:22:47 +00:00
KX_MotionState.h BGE: Cleaning up the BGE's physics code and removing KX_IPhysicsController and KX_BulletPhysicsController. Instead, we just use PHY_IPhysicsController, which removes a lot of duplicate code. 2013-11-04 19:22:47 +00:00
KX_MouseActuator.cpp Fix for building without Python 2015-06-14 04:53:10 +10:00
KX_MouseActuator.h Fix for building without Python 2015-06-14 04:53:10 +10:00
KX_MouseFocusSensor.cpp BGE: Fix T35288 Touch/Ray/Mouse sensor and Constraint actuator with material check doesn't work. 2015-07-25 09:43:06 +02:00
KX_MouseFocusSensor.h Cleanup 2014-07-21 10:53:07 +10:00
KX_NavMeshObject.cpp BGE: Navmesh fixes and improvements 2015-07-28 13:54:41 +02:00
KX_NavMeshObject.h BGE Clean-up: New EXP prefix for the BGE Expression module 2015-07-12 16:58:12 +02:00
KX_NearSensor.cpp Fix T38539: Can't set near sensor distance above 100 via python 2014-02-22 13:57:12 +11:00
KX_NearSensor.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
KX_ObColorIpoSGController.cpp BGE: Object color channels can now be animated separately without zeroing out the other channels. Problem reported by Dalai via IRC. 2013-02-23 01:17:01 +00:00
KX_ObColorIpoSGController.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
KX_ObjectActuator.cpp Fix T44919: BGE marhutils attrs leak memory 2015-06-02 11:08:17 +10:00
KX_ObjectActuator.h BGE: Fix: Double jumps are not working with character motion actuator 2015-05-14 09:45:51 +02:00
KX_ObstacleSimulation.cpp fix memory leak in KX_ObstacleSimulation 2013-08-04 17:20:03 +00:00
KX_ObstacleSimulation.h style cleanup 2012-09-16 04:58:18 +00:00
KX_OrientationInterpolator.cpp style cleanup, use { on newline after function definition. 2012-02-25 16:49:59 +00:00
KX_OrientationInterpolator.h optionally use guarded alloc for tiles compositor, also replace allocation functions with a macro. 2012-06-25 09:14:37 +00:00
KX_ParentActuator.cpp BGE Clean-up: New EXP prefix for the BGE Expression module 2015-07-12 16:58:12 +02:00
KX_ParentActuator.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
KX_PhysicsEngineEnums.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
KX_PolyProxy.cpp BGE: Fix T38030: wrong vertex index returned by KX_PolyProxy 2015-06-20 14:21:31 +02:00
KX_PolyProxy.h code cleanup: remove unused define, correct header guard mismatch, add NULL check so DM_to_mesh() can have a NULL object passed (currently not used) and remove redundant NULL check. 2013-08-03 23:58:17 +00:00
KX_PositionInterpolator.cpp style cleanup, use { on newline after function definition. 2012-02-25 16:49:59 +00:00
KX_PositionInterpolator.h optionally use guarded alloc for tiles compositor, also replace allocation functions with a macro. 2012-06-25 09:14:37 +00:00
KX_PyConstraintBinding.cpp BGE: Fix memory leak and crash with certain physic types 2015-08-16 11:38:25 +02:00
KX_PyConstraintBinding.h BGE: python API cleanup - bge submodules definitions 2015-02-03 15:32:54 +00:00
KX_PyMath.cpp BGE Clean-up: New EXP prefix for the BGE Expression module 2015-07-12 16:58:12 +02:00
KX_PyMath.h BGE Clean-up: New EXP prefix for the BGE Expression module 2015-07-12 16:58:12 +02:00
KX_PythonInit.cpp BGE: added bge.logic.{get,set}AnimRecordFrame functions 2015-08-25 13:42:09 +02:00
KX_PythonInit.h BGE Clean-up: New EXP prefix for the BGE Expression module 2015-07-12 16:58:12 +02:00
KX_PythonInitTypes.cpp BGE: Extend Python API for KX_BlenderMaterial (specular, diffuse…) 2015-07-03 11:47:48 +02:00
KX_PythonInitTypes.h Recreating bge python modules instead of using existing 2015-02-09 20:56:38 +00:00
KX_PythonMain.cpp code cleanup: remove $Id's that crept back in, also osl style edits 2012-10-23 11:47:23 +00:00
KX_PythonMain.h Fix T37488: Crash with --debug reading userpref.blend 2013-11-18 18:13:23 +06:00
KX_PythonSeq.cpp python api internals: no need to set the stop-iter exception string. 2013-11-17 15:09:57 +11:00
KX_PythonSeq.h BGE Clean-up: New EXP prefix for the BGE Expression module 2015-07-12 16:58:12 +02:00
KX_RadarSensor.cpp BGE: Cleaning up the BGE's physics code and removing KX_IPhysicsController and KX_BulletPhysicsController. Instead, we just use PHY_IPhysicsController, which removes a lot of duplicate code. 2013-11-04 19:22:47 +00:00
KX_RadarSensor.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
KX_RayCast.cpp BGE: Cleaning up the BGE's physics code and removing KX_IPhysicsController and KX_BulletPhysicsController. Instead, we just use PHY_IPhysicsController, which removes a lot of duplicate code. 2013-11-04 19:22:47 +00:00
KX_RayCast.h BGE: Cleaning up the BGE's physics code and removing KX_IPhysicsController and KX_BulletPhysicsController. Instead, we just use PHY_IPhysicsController, which removes a lot of duplicate code. 2013-11-04 19:22:47 +00:00
KX_RayEventManager.cpp remove $Id: tags after discussion on the mailign list: http://markmail.org/message/fp7ozcywxum3ar7n 2011-10-23 17:52:20 +00:00
KX_RayEventManager.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
KX_RaySensor.cpp BGE: Fix T35288 Touch/Ray/Mouse sensor and Constraint actuator with material check doesn't work. 2015-07-25 09:43:06 +02:00
KX_RaySensor.h Fix T40620: BGE Python - Ray sensor has wrong axis constants 2014-06-17 22:13:44 +10:00
KX_SCA_AddObjectActuator.cpp BGE Clean-up: New EXP prefix for the BGE Expression module 2015-07-12 16:58:12 +02:00
KX_SCA_AddObjectActuator.h style cleanup: trailing tabs & expand some non prefix tabs into spaces. 2012-10-21 05:46:41 +00:00
KX_SCA_DynamicActuator.cpp BGE: Fix T19377 restore dynamics after unparenting object. 2015-08-10 17:08:11 +02:00
KX_SCA_DynamicActuator.h BGE: Cleaning up the BGE's physics code and removing KX_IPhysicsController and KX_BulletPhysicsController. Instead, we just use PHY_IPhysicsController, which removes a lot of duplicate code. 2013-11-04 19:22:47 +00:00
KX_SCA_EndObjectActuator.cpp code cleanup: some warnings and formatting for PyMethodDef's in the BGE. 2012-11-10 05:42:50 +00:00
KX_SCA_EndObjectActuator.h style cleanup: also correct some doxy comments 2012-08-18 13:07:48 +00:00
KX_SCA_ReplaceMeshActuator.cpp BGE Clean-up: New EXP prefix for the BGE Expression module 2015-07-12 16:58:12 +02:00
KX_SCA_ReplaceMeshActuator.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
KX_ScalarInterpolator.cpp style cleanup, use { on newline after function definition. 2012-02-25 16:49:59 +00:00
KX_ScalarInterpolator.h optionally use guarded alloc for tiles compositor, also replace allocation functions with a macro. 2012-06-25 09:14:37 +00:00
KX_ScalingInterpolator.cpp style cleanup, use { on newline after function definition. 2012-02-25 16:49:59 +00:00
KX_ScalingInterpolator.h optionally use guarded alloc for tiles compositor, also replace allocation functions with a macro. 2012-06-25 09:14:37 +00:00
KX_Scene.cpp BGE: Fix mesh not registered in scene libload. 2015-08-18 12:24:38 +02:00
KX_Scene.h BGE Clean-up: New EXP prefix for the BGE Expression module 2015-07-12 16:58:12 +02:00
KX_SceneActuator.cpp style cleanup: 2013-03-26 07:29:01 +00:00
KX_SceneActuator.h code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
KX_SG_BoneParentNodeRelationship.cpp style cleanup 2012-09-16 04:58:18 +00:00
KX_SG_BoneParentNodeRelationship.h style cleanup 2012-09-16 04:58:18 +00:00
KX_SG_NodeRelationships.cpp style cleanup 2012-09-16 04:58:18 +00:00
KX_SG_NodeRelationships.h style cleanup 2012-09-16 04:58:18 +00:00
KX_SoundActuator.cpp Aduaspace: fixing playback in the game engine. 2015-08-02 11:27:02 +02:00
KX_SoundActuator.h Audaspace: fixing problems for the merge to master suggested by Campbell and Sergey. 2015-07-28 14:01:53 +02:00
KX_StateActuator.cpp remove $Id: tags after discussion on the mailign list: http://markmail.org/message/fp7ozcywxum3ar7n 2011-10-23 17:52:20 +00:00
KX_StateActuator.h use __ prefix on header guards to avoid mixing up defines with api functions / classes. 2012-02-23 10:41:31 +00:00
KX_SteeringActuator.cpp Cleanup: whitespace 2015-08-06 13:03:07 +10:00
KX_SteeringActuator.h BGE: Fix T41502 Path following jumping 2015-02-18 23:24:02 +01:00
KX_TimeCategoryLogger.cpp code cleanup: float formatting was confusing in some cases - eg: (0.,0.,0.) 2012-04-11 08:15:13 +00:00
KX_TimeCategoryLogger.h code cleanup: check for msvc directly when using warning pragma's. 2012-10-15 02:15:07 +00:00
KX_TimeLogger.cpp code cleanup: float formatting was confusing in some cases - eg: (0.,0.,0.) 2012-04-11 08:15:13 +00:00
KX_TimeLogger.h code cleanup: check for msvc directly when using warning pragma's. 2012-10-15 02:15:07 +00:00
KX_TouchEventManager.cpp BGE physics: When colliding, report first contact point to Python 2015-02-08 15:52:13 +01:00
KX_TouchEventManager.h BGE physics: When colliding, report first contact point to Python 2015-02-08 15:52:13 +01:00
KX_TouchSensor.cpp BGE: Fix T35288 Touch/Ray/Mouse sensor and Constraint actuator with material check doesn't work. 2015-07-25 09:43:06 +02:00
KX_TouchSensor.h BGE Clean-up: New EXP prefix for the BGE Expression module 2015-07-12 16:58:12 +02:00
KX_TrackToActuator.cpp BGE Clean-up: New EXP prefix for the BGE Expression module 2015-07-12 16:58:12 +02:00
KX_TrackToActuator.h BGE: TrackTo actuator: increasing up & track axis options 2014-07-14 18:30:27 -07:00
KX_VehicleWrapper.cpp BGE Clean-up: New EXP prefix for the BGE Expression module 2015-07-12 16:58:12 +02:00
KX_VehicleWrapper.h BGE Clean-up: New EXP prefix for the BGE Expression module 2015-07-12 16:58:12 +02:00
KX_VertexProxy.cpp Revert "BGE : KX_VertexProxy support for more than 2 UV channel." 2015-06-06 13:12:27 -07:00
KX_VertexProxy.h Revert "BGE : KX_VertexProxy support for more than 2 UV channel." 2015-06-06 13:12:27 -07:00
KX_VisibilityActuator.cpp remove $Id: tags after discussion on the mailign list: http://markmail.org/message/fp7ozcywxum3ar7n 2011-10-23 17:52:20 +00:00
KX_VisibilityActuator.h use __ prefix on header guards to avoid mixing up defines with api functions / classes. 2012-02-23 10:41:31 +00:00
KX_WorldInfo.cpp BGE: Fix color used as background in VideoTexture. 2015-06-24 13:03:23 +02:00
KX_WorldInfo.h BGE Clean-up: New EXP prefix for the BGE Expression module 2015-07-12 16:58:12 +02:00
KX_WorldIpoController.cpp BGE: Fix T27322: World F-Curve 2015-03-23 21:43:42 +01:00
KX_WorldIpoController.h BGE: Fix T27322: World F-Curve 2015-03-23 21:43:42 +01:00
SConscript SCons: Fix for really nasty bug with polluting configuration environment 2015-08-04 18:06:28 +02:00