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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2008-09-15 04:57:11 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2008-09-15 04:57:11 +0400
commit2c31cc4503ee4de8e8c4ff5665ed1e7dbabfb832 (patch)
tree993e24589ce163ff45f58a10b42a24683256153f /source/gameengine/GameLogic/SCA_2DFilterActuator.cpp
parenta24960daa8c4555e13bd0218cd735df4063b0e57 (diff)
Fix for bug #17620: the motion blur actuator did not work correct
with an always sensor, it kept resettting the motion blur each frame.
Diffstat (limited to 'source/gameengine/GameLogic/SCA_2DFilterActuator.cpp')
-rw-r--r--source/gameengine/GameLogic/SCA_2DFilterActuator.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/source/gameengine/GameLogic/SCA_2DFilterActuator.cpp b/source/gameengine/GameLogic/SCA_2DFilterActuator.cpp
index 96a770a553f..9ec4ea00337 100644
--- a/source/gameengine/GameLogic/SCA_2DFilterActuator.cpp
+++ b/source/gameengine/GameLogic/SCA_2DFilterActuator.cpp
@@ -23,8 +23,8 @@ SCA_2DFilterActuator::SCA_2DFilterActuator(
: SCA_IActuator(gameobj, T),
m_type(type),
m_flag(flag),
- m_int_arg(int_arg),
m_float_arg(float_arg),
+ m_int_arg(int_arg),
m_rasterizer(rasterizer),
m_rendertools(rendertools)
{
@@ -64,13 +64,11 @@ bool SCA_2DFilterActuator::Update()
if( m_type == RAS_2DFilterManager::RAS_2DFILTER_MOTIONBLUR )
{
if(!m_flag)
- {
m_rasterizer->EnableMotionBlur(m_float_arg);
- }
else
- {
m_rasterizer->DisableMotionBlur();
- }
+
+ return false;
}
else if(m_type < RAS_2DFilterManager::RAS_2DFILTER_NUMBER_OF_FILTERS)
{