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.)
This commit is contained in:
2005-06-05 16:40:48 +00:00
parent 1dd02d4cf9
commit 6d823636b8

View File

@@ -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 */
}
}
}