Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Clitherow <aphex@nildram.co.uk>2005-06-05 20:40:48 +0400
committerSimon Clitherow <aphex@nildram.co.uk>2005-06-05 20:40:48 +0400
commit6d823636b8e970e8dbad2781081c6d2c44f7197e (patch)
treef893905fabaa9ee31b3d697d6bc97cb74fcced33
parent1dd02d4cf96a3dc124505e3761de020ba0207642 (diff)
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.)
-rw-r--r--source/blender/src/interface.c2
1 files changed, 1 insertions, 1 deletions
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 */
}
}
}