Blender Git Commit Log

Git Commits -> Revision 4a4a3b4

Revision 4a4a3b4 by Campbell Barton (master)
August 23, 2009, 06:17 (GMT)
Option for MouseFocus sensor. only used when 'Mouse over any' type is set.

Previously the only way to detect if the mouse moved over a different object was to enable true-level-triggering and have a python script detect the change.

When the Pulse option is set, focusing on a different object pulses true.
Python attribute is focusSensor.usePulseFocus.

This is similar to the collision sensors pulse option where changes in the set of collision objects generates an event too.

Found this functionality missing when trying to make a logic demo that used mouse-over with overlapping objects.

Commit Details:

Full Hash: 4a4a3b4989355c699b72a8dc15df09fd47621528
SVN Revision: 22716
Parent Commit: f08a4c9
Lines Changed: +32, -5

6 Modified Paths:

/source/blender/makesdna/DNA_sensor_types.h (+3, -0) (Diff)
/source/blender/src/buttons_logic.c (+7, -1) (Diff)
/source/gameengine/Converter/KX_ConvertSensors.cpp (+1, -0) (Diff)
/source/gameengine/Ketsji/KX_MouseFocusSensor.cpp (+10, -2) (Diff)
/source/gameengine/Ketsji/KX_MouseFocusSensor.h (+8, -1) (Diff)
/source/gameengine/PyDoc/GameTypes.py (+3, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021