Blender Git Commit Log

Git Commits -> Revision f10db73

Revision f10db73 by Porteries Tristan (master)
October 28, 2015, 14:13 (GMT)
BGE: Fix T45945: Action bouncing.

Bug introduced in 583fa7d1e, KX_GameObject.setActionFrame can make BL_Action::m_starttime negative. But in BL_Action::Update m_starttime is set to the current time if it's negative.
To fix it we use a boolean BL_Action::m_initializedTime to know if we should initialize the time in BL_Action::Update, it's more stable than comparing times.

Tested with bug task T45945 and T32054, with an extra patch about to fix suspend resume scene issues with actions : D1569

Commit Details:

Full Hash: f10db730bc4d8139e86ce078dd0fdd9fd07a8f35
Parent Commit: e0c6098
Lines Changed: +8, -2

2 Modified Paths:

/source/gameengine/Ketsji/BL_Action.cpp (+6, -2) (Diff)
/source/gameengine/Ketsji/BL_Action.h (+2, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021