forked from bartvdbraak/blender
BGE Animations: Making sure the Action Actuator has a valid action before attempting to play.
This commit is contained in:
parent
47b061609d
commit
65af1dcecd
@ -152,6 +152,10 @@ bool BL_ActionActuator::Update(double curtime, bool frame)
|
|||||||
short play_mode = BL_Action::ACT_MODE_PLAY;
|
short play_mode = BL_Action::ACT_MODE_PLAY;
|
||||||
float start = m_startframe, end = m_endframe;
|
float start = m_startframe, end = m_endframe;
|
||||||
|
|
||||||
|
// If we don't have an action, we can't do anything
|
||||||
|
if (!m_action)
|
||||||
|
return false;
|
||||||
|
|
||||||
// Don't do anything if we're not "active"
|
// Don't do anything if we're not "active"
|
||||||
if (!frame)
|
if (!frame)
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user