Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitchell Stokes <mogurijin@gmail.com>2011-06-24 03:18:53 +0400
committerMitchell Stokes <mogurijin@gmail.com>2011-06-24 03:18:53 +0400
commit12ca476b8b73798bc2d2550af0c581b570d4b50f (patch)
treef896bcf6e412c4fb451fab56725b77c852a01b20
parentea47125f1630554fa5e69943821bdbe9964a589f (diff)
BGE Animations: For KX_GameObject.setActionFrame(layer, frame), frame should be a float, not a short.
-rw-r--r--source/gameengine/Ketsji/KX_GameObject.cpp5
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);