[Bf-blender-cvs] [dbc79e7] master: Fix T41074: Several Mouse Look actuators not working well together when reset button are set in one or several of them

Mitchell Stokes noreply at git.blender.org
Tue Jul 15 03:38:04 CEST 2014


Commit: dbc79e7aba4881cd3e61ad60433ef834965b6799
Author: Mitchell Stokes
Date:   Mon Jul 14 18:36:27 2014 -0700
https://developer.blender.org/rBdbc79e7aba4881cd3e61ad60433ef834965b6799

Fix T41074: Several Mouse Look actuators not working well together when reset button are set in one or several of them

Fix provided by lordloki (Jorge Bernal)

===================================================================

M	source/gameengine/Ketsji/KX_MouseActuator.cpp

===================================================================

diff --git a/source/gameengine/Ketsji/KX_MouseActuator.cpp b/source/gameengine/Ketsji/KX_MouseActuator.cpp
index 3d74bd7..aae5d18 100644
--- a/source/gameengine/Ketsji/KX_MouseActuator.cpp
+++ b/source/gameengine/Ketsji/KX_MouseActuator.cpp
@@ -208,6 +208,9 @@ bool KX_MouseActuator::Update()
 						parent->ApplyRotation(rotation, m_local_x);
 					}
 				}
+				else {
+					setposition[0] = 0.5;
+				}
 
 				//Calculating Y axis.
 				if (m_use_axis_y) {
@@ -266,6 +269,9 @@ bool KX_MouseActuator::Update()
 						parent->ApplyRotation(rotation, m_local_y);
 					}
 				}
+				else {
+					setposition[1] = 0.5;
+				}
 
 				setMousePosition(setposition[0], setposition[1]);




More information about the Bf-blender-cvs mailing list