[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [24928] trunk/blender/source/blender/ windowmanager/intern/wm_event_system.c: Click event detection ignores mouse move.
Martin Poirier
theeth at yahoo.com
Thu Nov 26 19:36:24 CET 2009
Revision: 24928
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=24928
Author: theeth
Date: 2009-11-26 19:36:24 +0100 (Thu, 26 Nov 2009)
Log Message:
-----------
Click event detection ignores mouse move.
This makes it less tricky (don't have to hold the mouse extra still) but tweak events (like lasso) still don't result in a click.
Modified Paths:
--------------
trunk/blender/source/blender/windowmanager/intern/wm_event_system.c
Modified: trunk/blender/source/blender/windowmanager/intern/wm_event_system.c
===================================================================
--- trunk/blender/source/blender/windowmanager/intern/wm_event_system.c 2009-11-26 17:54:16 UTC (rev 24927)
+++ trunk/blender/source/blender/windowmanager/intern/wm_event_system.c 2009-11-26 18:36:24 UTC (rev 24928)
@@ -1355,8 +1355,11 @@
/* store last event for this window */
if (action == WM_HANDLER_CONTINUE) {
- win->last_type = event->type;
- win->last_val = event->val;
+ /* mousemove event don't overwrite last type */
+ if (event->type != MOUSEMOVE) {
+ win->last_type = event->type;
+ win->last_val = event->val;
+ }
} else {
win->last_type = -1;
win->last_val = 0;
More information about the Bf-blender-cvs
mailing list