UI: fix menus getting closed too quick when moving mouse not exactly towards
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 19 May 2011 11:05:34 +0000 (11:05 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 19 May 2011 11:05:34 +0000 (11:05 +0000)
them, noticeable for the vertex groups or material slot utility menus.

source/blender/editors/interface/interface_handlers.c

index 759301c..5f8f3d0 100644 (file)
@@ -5534,10 +5534,6 @@ static int ui_mouse_motion_towards_check(uiBlock *block, uiPopupBlockHandle *men
        int closer;
 
        if(!menu->dotowards) return 0;
-       if((block->direction & UI_TOP) || (block->direction & UI_DOWN)) {
-               menu->dotowards= 0;
-               return menu->dotowards;
-       }
 
        /* verify that we are moving towards one of the edges of the
         * menu block, in other words, in the triangle formed by the