Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitchell Stokes <mogurijin@gmail.com>2013-06-24 08:24:01 +0400
committerMitchell Stokes <mogurijin@gmail.com>2013-06-24 08:24:01 +0400
commitdbec3af9944c7cf0448b17221dc915ce44a3dc09 (patch)
tree03e755d180da3004da0cabb8b5a51b783891d9f8 /source/gameengine
parent23c0e0d996571cdcb896526b8a96b1b988f6c8bf (diff)
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.
Diffstat (limited to 'source/gameengine')
-rw-r--r--source/gameengine/Ketsji/KX_IPO_SGController.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gameengine/Ketsji/KX_IPO_SGController.cpp b/source/gameengine/Ketsji/KX_IPO_SGController.cpp
index c5e11195547..4c43633d4c5 100644
--- a/source/gameengine/Ketsji/KX_IPO_SGController.cpp
+++ b/source/gameengine/Ketsji/KX_IPO_SGController.cpp
@@ -132,7 +132,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.0) {
+ if (! m_ipo_start_initialized && currentTime != 0.0) {
m_ipo_start_point = ob->GetLocalPosition();
m_ipo_start_orient = ob->GetLocalOrientation();
m_ipo_start_scale = ob->GetLocalScale();