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;
        }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to