diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-12-12 02:05:10 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-12-12 02:05:10 +0300 |
commit | 6dc52c893f7d1d039c8bee0aca20d1f2e633b57d (patch) | |
tree | ec3d5835482179c4738f0bb027cef2c4d3015260 /source/blender/python/api2_2x/Draw.c | |
parent | 5e3f4c20bba737a266e3efbb5bca869bdeabcfba (diff) |
for button popups, dont close unless you click or press escape, this would often close when dragging a button value (or when using a tablet I am told)
Diffstat (limited to 'source/blender/python/api2_2x/Draw.c')
-rw-r--r-- | source/blender/python/api2_2x/Draw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/Draw.c b/source/blender/python/api2_2x/Draw.c index 54ff927a2b3..9d151bee092 100644 --- a/source/blender/python/api2_2x/Draw.c +++ b/source/blender/python/api2_2x/Draw.c @@ -730,7 +730,7 @@ void BPY_spacescript_do_pywin_event( SpaceScript * sc, unsigned short event, if (val) { - if (uiDoBlocks( &curarea->uiblocks, event ) != UI_NOTHING) event = 0; + if (uiDoBlocks( &curarea->uiblocks, event, 1 ) != UI_NOTHING) event = 0; if (event == UI_BUT_EVENT) { /* check that event is in free range for script button events; @@ -1117,7 +1117,7 @@ static PyObject *Method_UIBlock( PyObject * self, PyObject * args ) /* Done clearing events */ uiBoundsBlock(uiblock, 5); - uiDoBlocks(&listb, 0); + uiDoBlocks(&listb, 0, 1); } uiFreeBlocks(&listb); uiblock = NULL; |