BGE: Fix T38986: Start object position not initialized in IPO.
The start position must be initialized at the first call of KX_IpoSGController::Update when m_ipo_start_initialized is to false, not when also the frame time is not 0.
This commit is contained in:
parent
537f41250f
commit
286f5ffa59
@ -124,7 +124,7 @@ bool KX_IpoSGController::Update(double currentTime)
|
||||
SG_Spatial *ob = (SG_Spatial *)m_pObject;
|
||||
|
||||
//initialization on the first frame of the IPO
|
||||
if (!m_ipo_start_initialized && currentTime != 0.0f) {
|
||||
if (!m_ipo_start_initialized) {
|
||||
m_ipo_start_point = ob->GetLocalPosition();
|
||||
m_ipo_start_orient = ob->GetLocalOrientation();
|
||||
m_ipo_start_scale = ob->GetLocalScale();
|
||||
|
Loading…
Reference in New Issue
Block a user