Fix T45886: cont.deactivate(ActionActuatorInPropertyMode) does not work
authorMitchell Stokes <mogurijin@gmail.com>
Mon, 24 Aug 2015 02:56:51 +0000 (19:56 -0700)
committerMitchell Stokes <mogurijin@gmail.com>
Wed, 7 Oct 2015 04:18:49 +0000 (21:18 -0700)
Make sure the Action Actuator actually deactivates when given a negative
event while using the property play mode.

source/gameengine/Converter/BL_ActionActuator.cpp

index d4cfeb2201a162455bd6d4b89c0923b54a46a9f5..372be85dacd0fff9565334ce558482bb4fc651b6 100644 (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