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.)
This commit is contained in:
@@ -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 */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user