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:
authorKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>2004-12-06 13:58:38 +0300
committerKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>2004-12-06 13:58:38 +0300
commit88e435a52abd6a4136e9e22bb3a9b88ffda3adfb (patch)
treef415f2a053b93075d96346b5db8cb9063392fc30 /source/gameengine
parent74256b8b7d7a087e45e8ad031d43904fb23ecef5 (diff)
Don't try to interpolate from prop ipo actuators
Diffstat (limited to 'source/gameengine')
-rw-r--r--source/gameengine/Ketsji/KX_IpoActuator.cpp15
1 files changed, 1 insertions, 14 deletions
diff --git a/source/gameengine/Ketsji/KX_IpoActuator.cpp b/source/gameengine/Ketsji/KX_IpoActuator.cpp
index 37c0578987c..df4a5047ef1 100644
--- a/source/gameengine/Ketsji/KX_IpoActuator.cpp
+++ b/source/gameengine/Ketsji/KX_IpoActuator.cpp
@@ -367,20 +367,7 @@ bool KX_IpoActuator::Update(double curtime, bool frame)
CValue* propval = GetParent()->GetProperty(m_propname);
if (propval)
{
- float target = propval->GetNumber();
- float delta_time = (curtime - m_starttime)*KX_FIXED_FRAME_PER_SEC;
- if (target > m_localtime)
- {
- m_localtime += delta_time;
- if (m_localtime > target)
- m_localtime = target;
- }
- else
- {
- m_localtime -= delta_time;
- if (m_localtime < target)
- m_localtime = target;
- }
+ m_localtime = propval->GetNumber();
CIpoAction ipoaction(
(KX_GameObject*) GetParent(),