BGE Animations: Fixing a bug where an action actuator could update a frame property when it wasn't active.

This commit is contained in:
2011-06-30 20:08:05 +00:00
parent 12596969af
commit b4b26b735c

View File

@@ -213,7 +213,7 @@ bool BL_ActionActuator::Update(double curtime, bool frame)
}
// Handle a frame property if it's defined
if (m_framepropname[0] != 0)
if (m_is_going && m_framepropname[0] != 0)
{
CValue* oldprop = obj->GetProperty(m_framepropname);
CValue* newval = new CFloatValue(obj->GetActionFrame(m_layer));