[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [33603] trunk/blender/source/blender/ editors/space_outliner/outliner_ops.c: Drag/drop fix:

Ton Roosendaal ton at blender.org
Sat Dec 11 18:55:54 CET 2010


Revision: 33603
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=33603
Author:   ton
Date:     2010-12-11 18:55:54 +0100 (Sat, 11 Dec 2010)

Log Message:
-----------
Drag/drop fix:

Outliner icons of ID blocks can be dragged, but it also caused an
activate of the item. This prevented using outliner for dragging
into name buttons. Now outliner activates on mouse-release, waiting
for potential drags to happen.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_outliner/outliner_ops.c

Modified: trunk/blender/source/blender/editors/space_outliner/outliner_ops.c
===================================================================
--- trunk/blender/source/blender/editors/space_outliner/outliner_ops.c	2010-12-11 17:47:36 UTC (rev 33602)
+++ trunk/blender/source/blender/editors/space_outliner/outliner_ops.c	2010-12-11 17:55:54 UTC (rev 33603)
@@ -77,7 +77,7 @@
 	
 	WM_keymap_add_item(keymap, "OUTLINER_OT_item_rename", LEFTMOUSE, KM_DBL_CLICK, 0, 0);
 	
-	RNA_boolean_set(WM_keymap_add_item(keymap, "OUTLINER_OT_item_activate", LEFTMOUSE, KM_PRESS, 0, 0)->ptr, "extend", 0);
+	RNA_boolean_set(WM_keymap_add_item(keymap, "OUTLINER_OT_item_activate", LEFTMOUSE, KM_RELEASE, 0, 0)->ptr, "extend", 0);
 	RNA_boolean_set(WM_keymap_add_item(keymap, "OUTLINER_OT_item_activate", LEFTMOUSE, KM_PRESS, KM_SHIFT, 0)->ptr, "extend", 1);
 	
 	RNA_boolean_set(WM_keymap_add_item(keymap, "OUTLINER_OT_item_openclose", RETKEY, KM_PRESS, 0, 0)->ptr, "all", 0);





More information about the Bf-blender-cvs mailing list