[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [38219] branches/soc-2011-pepper/source/ gameengine/Ketsji/KX_PythonInit.cpp: BGE Animations: Adding constants for the action play modes to bge.logic:
Mitchell Stokes
mogurijin at gmail.com
Fri Jul 8 09:32:45 CEST 2011
Revision: 38219
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=38219
Author: moguri
Date: 2011-07-08 07:32:45 +0000 (Fri, 08 Jul 2011)
Log Message:
-----------
BGE Animations: Adding constants for the action play modes to bge.logic:
* KX_ACTION_MODE_PLAY
* KX_ACTION_MODE_LOOP
* KX_ACTION_MODE_PING_PONG
Modified Paths:
--------------
branches/soc-2011-pepper/source/gameengine/Ketsji/KX_PythonInit.cpp
Modified: branches/soc-2011-pepper/source/gameengine/Ketsji/KX_PythonInit.cpp
===================================================================
--- branches/soc-2011-pepper/source/gameengine/Ketsji/KX_PythonInit.cpp 2011-07-08 07:31:40 UTC (rev 38218)
+++ branches/soc-2011-pepper/source/gameengine/Ketsji/KX_PythonInit.cpp 2011-07-08 07:32:45 UTC (rev 38219)
@@ -113,6 +113,7 @@
#include "NG_NetworkScene.h" //Needed for sendMessage()
#include "BL_Shader.h"
+#include "BL_Action.h"
#include "KX_PyMath.h"
@@ -1628,6 +1629,11 @@
KX_MACRO_addTypesToDict(d, ROT_MODE_ZXY, ROT_MODE_ZXY);
KX_MACRO_addTypesToDict(d, ROT_MODE_ZYX, ROT_MODE_ZYX);
+ /* BL_Action play modes */
+ KX_MACRO_addTypesToDict(d, KX_ACTION_MODE_PLAY, BL_Action::ACT_MODE_PLAY);
+ KX_MACRO_addTypesToDict(d, KX_ACTION_MODE_LOOP, BL_Action::ACT_MODE_LOOP);
+ KX_MACRO_addTypesToDict(d, KX_ACTION_MODE_PING_PONG, BL_Action::ACT_MODE_PING_PONG);
+
// Check for errors
if (PyErr_Occurred())
{
More information about the Bf-blender-cvs
mailing list