[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [39271] branches/soc-2011-pepper/source/ gameengine/Converter/BL_ActionActuator.cpp: BGE Animations: Always update the localtime used for continuous animations.
Mitchell Stokes
mogurijin at gmail.com
Wed Aug 10 22:05:32 CEST 2011
Revision: 39271
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=39271
Author: moguri
Date: 2011-08-10 20:05:30 +0000 (Wed, 10 Aug 2011)
Log Message:
-----------
BGE Animations: Always update the localtime used for continuous animations. Previously this was only done on a positive or negative pulse, which could lead to some issues with a continuous flipper animation.
Modified Paths:
--------------
branches/soc-2011-pepper/source/gameengine/Converter/BL_ActionActuator.cpp
Modified: branches/soc-2011-pepper/source/gameengine/Converter/BL_ActionActuator.cpp
===================================================================
--- branches/soc-2011-pepper/source/gameengine/Converter/BL_ActionActuator.cpp 2011-08-10 19:45:08 UTC (rev 39270)
+++ branches/soc-2011-pepper/source/gameengine/Converter/BL_ActionActuator.cpp 2011-08-10 20:05:30 UTC (rev 39271)
@@ -188,12 +188,12 @@
bPositiveEvent = m_posevent;
RemoveAllEvents();
}
+
+ if (use_continue && m_flag & ACT_FLAG_ACTIVE)
+ m_localtime = obj->GetActionFrame(m_layer);
if (bPositiveEvent)
{
- if (use_continue && m_flag & ACT_FLAG_ACTIVE)
- start = m_localtime = obj->GetActionFrame(m_layer);
-
if (obj->PlayAction(m_action->id.name+2, start, end, m_layer, m_priority, m_blendin, play_mode, m_layer_weight, m_ipo_flags))
{
m_flag |= ACT_FLAG_ACTIVE;
More information about the Bf-blender-cvs
mailing list