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:
authorSybren A. Stüvel <sybren@stuvel.eu>2015-02-21 16:39:04 +0300
committerSybren A. Stüvel <sybren@stuvel.eu>2015-02-21 16:39:04 +0300
commit6d9c99422b8873d6276af35d884105075077df2e (patch)
tree8274dee42bb22790aa3ea87844e1b49a0fa9acde /source/gameengine
parent813dcb9febad5d6927cefb3d8ff84b21f7766ad5 (diff)
Fix T43748: MouseLook actuator raises an Assert error
An assertion seems to be inverted by mistake, as MT_assert(!m_mouse); is followed by using m_mouse->XXXX.
Diffstat (limited to 'source/gameengine')
-rw-r--r--source/gameengine/Ketsji/KX_MouseActuator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gameengine/Ketsji/KX_MouseActuator.cpp b/source/gameengine/Ketsji/KX_MouseActuator.cpp
index 4afa1818536..62417b4df81 100644
--- a/source/gameengine/Ketsji/KX_MouseActuator.cpp
+++ b/source/gameengine/Ketsji/KX_MouseActuator.cpp
@@ -316,7 +316,7 @@ void KX_MouseActuator::ProcessReplica()
void KX_MouseActuator::getMousePosition(float* pos)
{
- MT_assert(!m_mouse);
+ MT_assert(m_mouse);
const SCA_InputEvent & xevent = m_mouse->GetEventValue(SCA_IInputDevice::KX_MOUSEX);
const SCA_InputEvent & yevent = m_mouse->GetEventValue(SCA_IInputDevice::KX_MOUSEY);