forked from bartvdbraak/blender
BGE: Fix for [#35737] "Action actuator in property mode don't work with values lower then 1" reported by HG1.
IPOs were only set as "initialized" if the current time was greater than 0.0, which is why negative values weren't working.
This commit is contained in:
parent
23c0e0d996
commit
dbec3af994
@ -132,7 +132,7 @@ bool KX_IpoSGController::Update(double currentTime)
|
|||||||
SG_Spatial* ob = (SG_Spatial*)m_pObject;
|
SG_Spatial* ob = (SG_Spatial*)m_pObject;
|
||||||
|
|
||||||
//initialization on the first frame of the IPO
|
//initialization on the first frame of the IPO
|
||||||
if (! m_ipo_start_initialized && currentTime > 0.0) {
|
if (! m_ipo_start_initialized && currentTime != 0.0) {
|
||||||
m_ipo_start_point = ob->GetLocalPosition();
|
m_ipo_start_point = ob->GetLocalPosition();
|
||||||
m_ipo_start_orient = ob->GetLocalOrientation();
|
m_ipo_start_orient = ob->GetLocalOrientation();
|
||||||
m_ipo_start_scale = ob->GetLocalScale();
|
m_ipo_start_scale = ob->GetLocalScale();
|
||||||
|
Loading…
Reference in New Issue
Block a user