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>2011-06-24 04:31:13 +0400
committerMitchell Stokes <mogurijin@gmail.com>2011-06-24 04:31:13 +0400
commita165ad251e30268e099e8872be4a0874a782cd87 (patch)
tree1d40ea9e973cd9ad663667ceed4b804e8741f2fd /source/gameengine/Ketsji/BL_Action.cpp
parentf969b813a49e15f66fcfa669904d615cd827a335 (diff)
BGE Animations: Removing no longer used code and variables.
Diffstat (limited to 'source/gameengine/Ketsji/BL_Action.cpp')
-rw-r--r--source/gameengine/Ketsji/BL_Action.cpp17
1 files changed, 1 insertions, 16 deletions
diff --git a/source/gameengine/Ketsji/BL_Action.cpp b/source/gameengine/Ketsji/BL_Action.cpp
index cf372602431..90349bcfddd 100644
--- a/source/gameengine/Ketsji/BL_Action.cpp
+++ b/source/gameengine/Ketsji/BL_Action.cpp
@@ -177,8 +177,6 @@ float BL_Action::GetFrame()
void BL_Action::SetFrame(float frame)
{
- float dt;
-
// Clamp the frame to the start and end frame
if (frame < min(m_startframe, m_endframe))
frame = min(m_startframe, m_endframe);
@@ -187,19 +185,6 @@ void BL_Action::SetFrame(float frame)
m_localtime = frame;
m_bcalc_local_time = false;
-
-#if 0
- // We don't set m_localtime directly since it's recalculated
- // in the next update. So, we modify the value (m_starttime)
- // used to calculate m_localtime the next time SetLocalTime() is called.
-
- dt = frame-m_startframe;
-
- if (m_endframe < m_startframe)
- dt = -dt;
-
- m_starttime -= dt / (KX_KetsjiEngine::GetAnimFrameRate()*m_speed);
-#endif
}
void BL_Action::SetLocalTime(float curtime)
@@ -218,7 +203,7 @@ void BL_Action::Update(float curtime)
if (m_done)
return;
- // We only want to calculate the current time we weren't given a frame (e.g., from SetFrame())
+ // We only want to calculate the current time if we weren't given a frame (e.g., from SetFrame())
if (m_bcalc_local_time)
{
curtime -= KX_KetsjiEngine::GetSuspendedDelta();