From 6d823636b8e970e8dbad2781081c6d2c44f7197e Mon Sep 17 00:00:00 2001 From: Simon Clitherow Date: Sun, 5 Jun 2005 16:40:48 +0000 Subject: [PATCH] Bug fix: #2256 Sliders (and potentially other buttons) with no retval were not breaking the ui_do_block() loop, which caused events to propagate to other panels! (The effect could also be seen by dragging from AO sliders into the World name textbox.) --- source/blender/src/interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/src/interface.c b/source/blender/src/interface.c index 4486f5d9ab0..9e2af1e2e55 100644 --- a/source/blender/src/interface.c +++ b/source/blender/src/interface.c @@ -3468,7 +3468,7 @@ static int ui_do_block(uiBlock *block, uiEvent *uevent) if( (block->flag & UI_BLOCK_LOOP) && but->type==BLOCK); else - if(/*but->func ||*/ butevent) retval= UI_RETURN_OK; + retval= UI_RETURN_OK; /* event handled, so return */ } } }