Blender Git Loki

Git Commits -> Revision ba5807c

Revision ba5807c by Sybren A. Stüvel (master)
August 25, 2015, 11:42 (GMT)
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

Commit Details:

Full Hash: ba5807c2710939cf8171fb19830f82cece48759f
Parent Commit: 6f7eb62
Lines Changed: +58, -0

4 Modified Paths:

/doc/python_api/rst/bge.logic.rst (+22, -0) (Diff)
/source/gameengine/Ketsji/KX_KetsjiEngine.cpp (+10, -0) (Diff)
/source/gameengine/Ketsji/KX_KetsjiEngine.h (+3, -0) (Diff)
/source/gameengine/Ketsji/KX_PythonInit.cpp (+23, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021