[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [37777] branches/soc-2011-pepper/source/ gameengine/Ketsji/KX_GameObject.cpp: BGE Animations: For KX_GameObject. setActionFrame(layer, frame), frame should be a float, not a short.

Mitchell Stokes mogurijin at gmail.com
Fri Jun 24 01:18:53 CEST 2011


Revision: 37777
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=37777
Author:   moguri
Date:     2011-06-23 23:18:53 +0000 (Thu, 23 Jun 2011)
Log Message:
-----------
BGE Animations: For KX_GameObject.setActionFrame(layer, frame), frame should be a float, not a short.

Modified Paths:
--------------
    branches/soc-2011-pepper/source/gameengine/Ketsji/KX_GameObject.cpp

Modified: branches/soc-2011-pepper/source/gameengine/Ketsji/KX_GameObject.cpp
===================================================================
--- branches/soc-2011-pepper/source/gameengine/Ketsji/KX_GameObject.cpp	2011-06-23 23:18:49 UTC (rev 37776)
+++ branches/soc-2011-pepper/source/gameengine/Ketsji/KX_GameObject.cpp	2011-06-23 23:18:53 UTC (rev 37777)
@@ -3091,9 +3091,10 @@
 	"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);




More information about the Bf-blender-cvs mailing list