forked from bartvdbraak/blender
BGE Animations: The return type for KX_GameObject.getActionFrame() was an integer when it should have been a float. I've fixed this and converted the tabs in the new BGE animation docs to space. I have also added more info on return types for KX_GameObject.getActionFrame() and KX_GameObject.isPlayingAction().
This commit is contained in:
parent
d8394b9d67
commit
812d5d2e5c
@ -1579,6 +1579,7 @@ Game Types (bge.types)
|
||||
:type layer: integer
|
||||
|
||||
:return: The current frame of the action
|
||||
:rtype: float
|
||||
|
||||
.. method:: setActionFrame(frame, layer=0)
|
||||
|
||||
@ -1596,6 +1597,9 @@ Game Types (bge.types)
|
||||
:arg layer: The layer to check for a playing action.
|
||||
:type layer: integer
|
||||
|
||||
:return: Whether or not the action is playing
|
||||
:rtype: boolean
|
||||
|
||||
.. class:: KX_IpoActuator(SCA_IActuator)
|
||||
|
||||
IPO actuator activates an animation.
|
||||
|
@ -3124,7 +3124,7 @@ KX_PYMETHODDEF_DOC(KX_GameObject, getActionFrame,
|
||||
|
||||
layer_check(layer, "getActionFrame");
|
||||
|
||||
return PyLong_FromLong(GetActionFrame(layer));
|
||||
return PyFloat_FromDouble(GetActionFrame(layer));
|
||||
}
|
||||
|
||||
KX_PYMETHODDEF_DOC(KX_GameObject, setActionFrame,
|
||||
|
Loading…
Reference in New Issue
Block a user