diff options
author | Mitchell Stokes <mogurijin@gmail.com> | 2011-06-24 03:18:53 +0400 |
---|---|---|
committer | Mitchell Stokes <mogurijin@gmail.com> | 2011-06-24 03:18:53 +0400 |
commit | 12ca476b8b73798bc2d2550af0c581b570d4b50f (patch) | |
tree | f896bcf6e412c4fb451fab56725b77c852a01b20 /source/gameengine/Ketsji/KX_GameObject.cpp | |
parent | ea47125f1630554fa5e69943821bdbe9964a589f (diff) |
BGE Animations: For KX_GameObject.setActionFrame(layer, frame), frame should be a float, not a short.
Diffstat (limited to 'source/gameengine/Ketsji/KX_GameObject.cpp')
-rw-r--r-- | source/gameengine/Ketsji/KX_GameObject.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/gameengine/Ketsji/KX_GameObject.cpp b/source/gameengine/Ketsji/KX_GameObject.cpp index 07e4523585a..152efed7a4b 100644 --- a/source/gameengine/Ketsji/KX_GameObject.cpp +++ b/source/gameengine/Ketsji/KX_GameObject.cpp @@ -3091,9 +3091,10 @@ KX_PYMETHODDEF_DOC(KX_GameObject, setActionFrame, "setActionFrame(layer, frame)\n" "Set the current fram of the action playing in the supplied layer") { - short layer, frame; + short layer; + float frame; - if (!PyArg_ParseTuple(args, "hh:setActionFrame", &layer, &frame)) + if (!PyArg_ParseTuple(args, "hf:setActionFrame", &layer, &frame)) return NULL; SetActionFrame(layer, frame); |