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:
Mitchell Stokes 2015-08-23 19:56:51 -07:00 committed by Sergey Sharybin
parent ad950be67c
commit 5d59a51aca
1 changed files with 1 additions and 0 deletions

View File

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