[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [38047] branches/soc-2011-pepper/source/ gameengine/Converter/BL_ActionActuator.cpp: BGE Animations: Reimplementing support for the "Flipper" play mode of the action actuator.
Mitchell Stokes
mogurijin at gmail.com
Sun Jul 3 04:51:15 CEST 2011
Revision: 38047
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=38047
Author: moguri
Date: 2011-07-03 02:51:14 +0000 (Sun, 03 Jul 2011)
Log Message:
-----------
BGE Animations: Reimplementing support for the "Flipper" play mode of the action actuator.
Modified Paths:
--------------
branches/soc-2011-pepper/source/gameengine/Converter/BL_ActionActuator.cpp
Modified: branches/soc-2011-pepper/source/gameengine/Converter/BL_ActionActuator.cpp
===================================================================
--- branches/soc-2011-pepper/source/gameengine/Converter/BL_ActionActuator.cpp 2011-07-03 01:59:17 UTC (rev 38046)
+++ branches/soc-2011-pepper/source/gameengine/Converter/BL_ActionActuator.cpp 2011-07-03 02:51:14 UTC (rev 38047)
@@ -208,6 +208,14 @@
return true;
}
+ else if (m_playtype == ACT_ACTION_FLIPPER)
+ {
+ // Convert into a play action and play back to the beginning
+ end = start;
+ start = obj->GetActionFrame(m_layer);
+ obj->StopAction(m_layer);
+ obj->PlayAction(m_action->id.name+2, start, end, m_layer, m_priority, 0, BL_Action::ACT_MODE_PLAY, m_layer_weight, m_ipo_flags);
+ }
m_is_going = false;
}
More information about the Bf-blender-cvs
mailing list