Fix T45886: cont.deactivate(ActionActuatorInPropertyMode) does not work

Make sure the Action Actuator actually deactivates when given a negative
event while using the property play mode.
This commit is contained in:
2015-08-23 19:56:51 -07:00
parent b333a7570f
commit 077b4ab846

View File

@@ -307,6 +307,7 @@ bool BL_ActionActuator::Update(double curtime, bool frame)
} }
switch (m_playtype) { switch (m_playtype) {
case ACT_ACTION_FROM_PROP:
case ACT_ACTION_LOOP_STOP: case ACT_ACTION_LOOP_STOP:
obj->StopAction(m_layer); // Stop the action after getting the frame obj->StopAction(m_layer); // Stop the action after getting the frame