- code i committed for correct arrowkeys on selecting items in pulldowns
authorTon Roosendaal <ton@blender.org>
Sat, 24 Jan 2004 17:26:58 +0000 (17:26 +0000)
committerTon Roosendaal <ton@blender.org>
Sat, 24 Jan 2004 17:26:58 +0000 (17:26 +0000)
  broke the ui_mouse_motion_towards_block() function. This made sure
  mouse motion (diagonal) towards a new opened sub-level keeps the sub-
  level open.
  Fixed!

source/blender/src/interface.c

index f865415e4d0f5e28c8b0d46e2d8810acff83ef8c..6add1d941f7a403f2765e8c3229fb5c920d32182 100644 (file)
@@ -511,7 +511,7 @@ static void ui_positionblock(uiBlock *block, uiBut *but)
                        if(dir2==UI_RIGHT) block->safety.xmax= block->maxx+3; 
                        if(dir2==UI_LEFT) block->safety.xmin= block->minx-3; 
                }
-               block->direction= dir1|dir2;
+               block->direction= dir1;
        }
        else {
                block->safety.xmin= block->minx-40;