[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [37779] branches/soc-2011-pepper/source/ gameengine/Ketsji/BL_Action.cpp: BGE Animations: Removing no longer used code and variables.
Mitchell Stokes
mogurijin at gmail.com
Fri Jun 24 02:31:15 CEST 2011
Revision: 37779
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=37779
Author: moguri
Date: 2011-06-24 00:31:13 +0000 (Fri, 24 Jun 2011)
Log Message:
-----------
BGE Animations: Removing no longer used code and variables.
Modified Paths:
--------------
branches/soc-2011-pepper/source/gameengine/Ketsji/BL_Action.cpp
Modified: branches/soc-2011-pepper/source/gameengine/Ketsji/BL_Action.cpp
===================================================================
--- branches/soc-2011-pepper/source/gameengine/Ketsji/BL_Action.cpp 2011-06-23 23:19:39 UTC (rev 37778)
+++ branches/soc-2011-pepper/source/gameengine/Ketsji/BL_Action.cpp 2011-06-24 00:31:13 UTC (rev 37779)
@@ -177,8 +177,6 @@
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 @@
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 @@
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();
More information about the Bf-blender-cvs
mailing list