[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [34917] trunk/blender/source/gameengine: forgot from last commit: adding python support for pingpong playmode
Dalai Felinto
dfelinto at gmail.com
Wed Feb 16 21:04:34 CET 2011
Revision: 34917
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=34917
Author: dfelinto
Date: 2011-02-16 20:04:32 +0000 (Wed, 16 Feb 2011)
Log Message:
-----------
forgot from last commit: adding python support for pingpong playmode
(BGE: Action and ShapeKey Actuator PingPong playmode.)
Modified Paths:
--------------
trunk/blender/source/gameengine/Converter/BL_ActionActuator.h
trunk/blender/source/gameengine/Converter/BL_ShapeActionActuator.h
trunk/blender/source/gameengine/Ketsji/KX_PythonInit.cpp
Modified: trunk/blender/source/gameengine/Converter/BL_ActionActuator.h
===================================================================
--- trunk/blender/source/gameengine/Converter/BL_ActionActuator.h 2011-02-16 19:53:39 UTC (rev 34916)
+++ trunk/blender/source/gameengine/Converter/BL_ActionActuator.h 2011-02-16 20:04:32 UTC (rev 34917)
@@ -121,6 +121,7 @@
switch (act->m_playtype) {
case ACT_ACTION_PLAY:
+ case ACT_ACTION_PINGPONG:
case ACT_ACTION_FLIPPER:
case ACT_ACTION_LOOP_STOP:
case ACT_ACTION_LOOP_END:
Modified: trunk/blender/source/gameengine/Converter/BL_ShapeActionActuator.h
===================================================================
--- trunk/blender/source/gameengine/Converter/BL_ShapeActionActuator.h 2011-02-16 19:53:39 UTC (rev 34916)
+++ trunk/blender/source/gameengine/Converter/BL_ShapeActionActuator.h 2011-02-16 20:04:32 UTC (rev 34917)
@@ -113,6 +113,7 @@
switch (act->m_playtype) {
case ACT_ACTION_PLAY:
+ case ACT_ACTION_PINGPONG:
case ACT_ACTION_FLIPPER:
case ACT_ACTION_LOOP_STOP:
case ACT_ACTION_LOOP_END:
Modified: trunk/blender/source/gameengine/Ketsji/KX_PythonInit.cpp
===================================================================
--- trunk/blender/source/gameengine/Ketsji/KX_PythonInit.cpp 2011-02-16 19:53:39 UTC (rev 34916)
+++ trunk/blender/source/gameengine/Ketsji/KX_PythonInit.cpp 2011-02-16 20:04:32 UTC (rev 34917)
@@ -1398,6 +1398,7 @@
/* 7. Action actuator */
KX_MACRO_addTypesToDict(d, KX_ACTIONACT_PLAY, ACT_ACTION_PLAY);
+ KX_MACRO_addTypesToDict(d, KX_ACTIONACT_PINGPONG, ACT_ACTION_PINGPONG);
KX_MACRO_addTypesToDict(d, KX_ACTIONACT_FLIPPER, ACT_ACTION_FLIPPER);
KX_MACRO_addTypesToDict(d, KX_ACTIONACT_LOOPSTOP, ACT_ACTION_LOOP_STOP);
KX_MACRO_addTypesToDict(d, KX_ACTIONACT_LOOPEND, ACT_ACTION_LOOP_END);
More information about the Bf-blender-cvs
mailing list