forked from bartvdbraak/blender
Correction to last commit
This commit is contained in:
parent
3448822b2f
commit
d8282da545
@ -253,19 +253,15 @@ bool BL_ActionActuator::Update(double curtime, bool frame)
|
|||||||
|
|
||||||
// Handle a finished animation
|
// Handle a finished animation
|
||||||
if ((m_flag & ACT_FLAG_PLAY_END) && (m_flag & ACT_FLAG_ACTIVE) && obj->IsActionDone(m_layer))
|
if ((m_flag & ACT_FLAG_PLAY_END) && (m_flag & ACT_FLAG_ACTIVE) && obj->IsActionDone(m_layer))
|
||||||
{
|
|
||||||
if (m_playtype == ACT_ACTION_PINGPONG)
|
|
||||||
{
|
|
||||||
m_flag ^= ACT_FLAG_REVERSE;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
m_flag &= ~ACT_FLAG_ACTIVE;
|
m_flag &= ~ACT_FLAG_ACTIVE;
|
||||||
m_flag &= ~ACT_FLAG_ATTEMPT_PLAY;
|
m_flag &= ~ACT_FLAG_ATTEMPT_PLAY;
|
||||||
|
|
||||||
|
if (m_playtype == ACT_ACTION_PINGPONG)
|
||||||
|
m_flag ^= ACT_FLAG_REVERSE;
|
||||||
|
else
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// If a different action is playing, we've been overruled and are no longer active
|
// If a different action is playing, we've been overruled and are no longer active
|
||||||
if (obj->GetCurrentAction(m_layer) != m_action && !obj->IsActionDone(m_layer))
|
if (obj->GetCurrentAction(m_layer) != m_action && !obj->IsActionDone(m_layer))
|
||||||
|
Loading…
Reference in New Issue
Block a user