[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [44037] trunk/blender/source/blender/ makesrna/intern/rna_wm.c: Fix [#30122] "Tweak" mouse event values were not loaded from keymap files.

Bastien Montagne montagne29 at wanadoo.fr
Sat Feb 11 15:50:30 CET 2012


Revision: 44037
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=44037
Author:   mont29
Date:     2012-02-11 14:50:26 +0000 (Sat, 11 Feb 2012)
Log Message:
-----------
Fix [#30122] "Tweak" mouse event values were not loaded from keymap files.

The problem was, those values were not included in the event type agnostic event_value_items list, hence RNA keymap item creation just ignored them.

Modified Paths:
--------------
    trunk/blender/source/blender/makesrna/intern/rna_wm.c

Modified: trunk/blender/source/blender/makesrna/intern/rna_wm.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_wm.c	2012-02-11 14:27:36 UTC (rev 44036)
+++ trunk/blender/source/blender/makesrna/intern/rna_wm.c	2012-02-11 14:50:26 UTC (rev 44037)
@@ -67,6 +67,14 @@
 	{KM_RELEASE, "RELEASE", 0, "Release", ""},
 	{KM_CLICK, "CLICK", 0, "Click", ""},
 	{KM_DBL_CLICK, "DOUBLE_CLICK", 0, "Double Click", ""},
+	{EVT_GESTURE_N, "NORTH", 0, "North", ""},
+	{EVT_GESTURE_NE, "NORTH_EAST", 0, "North-East", ""},
+	{EVT_GESTURE_E, "EAST", 0, "East", ""},
+	{EVT_GESTURE_SE, "SOUTH_EAST", 0, "South-East", ""},
+	{EVT_GESTURE_S, "SOUTH", 0, "South", ""},
+	{EVT_GESTURE_SW, "SOUTH_WEST", 0, "South-West", ""},
+	{EVT_GESTURE_W, "WEST", 0, "West", ""},
+	{EVT_GESTURE_NW, "NORTH_WEST", 0, "North-West", ""},
 	{0, NULL, 0, NULL, NULL}};
 
 EnumPropertyItem event_tweak_type_items[]= {




More information about the Bf-blender-cvs mailing list