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-29 05:53:17 +0400
committerMitchell Stokes <mogurijin@gmail.com>2011-06-29 05:53:17 +0400
commitd122f24c1af429dd59a0051db01650fd2b1abbba (patch)
treed81cf34654d6eb2910e1d7ca338e90060b034624 /source/gameengine/Ketsji/BL_ActionManager.cpp
parentde3c95a09c9eb82b04da4345c98eb53030342af8 (diff)
BGE Animations: Fixing a bug with priority and non continuous animations.
Diffstat (limited to 'source/gameengine/Ketsji/BL_ActionManager.cpp')
-rw-r--r--source/gameengine/Ketsji/BL_ActionManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/gameengine/Ketsji/BL_ActionManager.cpp b/source/gameengine/Ketsji/BL_ActionManager.cpp
index 9e847b20c9d..dfa06bd19d5 100644
--- a/source/gameengine/Ketsji/BL_ActionManager.cpp
+++ b/source/gameengine/Ketsji/BL_ActionManager.cpp
@@ -56,7 +56,7 @@ void BL_ActionManager::SetActionFrame(short layer, float frame)
m_layers[layer]->SetFrame(frame);
}
-void BL_ActionManager::PlayAction(const char* name,
+bool BL_ActionManager::PlayAction(const char* name,
float start,
float end,
short layer,
@@ -67,7 +67,7 @@ void BL_ActionManager::PlayAction(const char* name,
short ipo_flags,
float playback_speed)
{
- m_layers[layer]->Play(name, start, end, priority, blendin, play_mode, blend_mode, ipo_flags, playback_speed);
+ return m_layers[layer]->Play(name, start, end, priority, blendin, play_mode, blend_mode, ipo_flags, playback_speed);
}
void BL_ActionManager::StopAction(short layer)