[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [41852] trunk/blender/source/blender/ editors/interface/interface_layout.c: Fix #29165: Arrow keys not working correct in Compositing Node Editor

Sergey Sharybin sergey.vfx at gmail.com
Tue Nov 15 07:33:35 CET 2011


Revision: 41852
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=41852
Author:   nazgul
Date:     2011-11-15 06:33:33 +0000 (Tue, 15 Nov 2011)
Log Message:
-----------
Fix #29165: Arrow keys not working correct in Compositing Node Editor

Bug is caused because of how ui_handle_menu_event works -- it makes quite tricky check
in which direction movement happens depending on button type.

Checked usages for uiItemV and found that it's used in node_editor only, so changed type
of button used there, so ui_handle_menu_event works would detect right direction of
movement.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/interface/interface_layout.c

Modified: trunk/blender/source/blender/editors/interface/interface_layout.c
===================================================================
--- trunk/blender/source/blender/editors/interface/interface_layout.c	2011-11-15 04:11:01 UTC (rev 41851)
+++ trunk/blender/source/blender/editors/interface/interface_layout.c	2011-11-15 06:33:33 UTC (rev 41852)
@@ -1492,11 +1492,11 @@
 	w= ui_text_icon_width(layout, name, icon, 0);
 
 	if(icon && name[0])
-		uiDefIconTextButF(block, BUTM, 0, icon, name, 0, 0, w, UI_UNIT_Y, retvalue, 0.0, 0.0, 0, argval, "");
+		uiDefIconTextButF(block, BUT, 0, icon, name, 0, 0, w, UI_UNIT_Y, retvalue, 0.0, 0.0, 0, argval, "");
 	else if(icon)
-		uiDefIconButF(block, BUTM, 0, icon, 0, 0, w, UI_UNIT_Y, retvalue, 0.0, 0.0, 0, argval, "");
+		uiDefIconButF(block, BUT, 0, icon, 0, 0, w, UI_UNIT_Y, retvalue, 0.0, 0.0, 0, argval, "");
 	else
-		uiDefButF(block, BUTM, 0, name, 0, 0, w, UI_UNIT_Y, retvalue, 0.0, 0.0, 0, argval, "");
+		uiDefButF(block, BUT, 0, name, 0, 0, w, UI_UNIT_Y, retvalue, 0.0, 0.0, 0, argval, "");
 }
 
 /* separator item */




More information about the Bf-blender-cvs mailing list