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:
authorPorteries Tristan <republicthunderbolt9@gmail.com>2015-10-29 19:50:16 +0300
committerPorteries Tristan <republicthunderbolt9@gmail.com>2015-10-29 20:44:09 +0300
commit286f5ffa595cbdf9bb73c223ece4234aab38bd87 (patch)
tree478a92c9fec7bf66c00ebc9b780474dde21ba7d8
parent537f41250f1025c71bdcf8c55a32da1b81de5a4c (diff)
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.
-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 0ce39e41a1f..f3947fdd710 100644
--- a/source/gameengine/Ketsji/KX_IPO_SGController.cpp
+++ b/source/gameengine/Ketsji/KX_IPO_SGController.cpp
@@ -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();