UI: no need to update drag-edit for scroll buttons

This commit is contained in:
Campbell Barton
2015-10-08 09:04:38 +11:00
parent 720d4521cd
commit 27ff2be921

View File

@@ -4350,7 +4350,9 @@ static bool ui_numedit_but_SLI(
float offs;
/* prevent unwanted drag adjustments */
if (ui_but_dragedit_update_mval(data, mx) == false && but->type != UI_BTYPE_SCROLL) {
if ((but->type != UI_BTYPE_SCROLL) &&
(ui_but_dragedit_update_mval(data, mx) == false))
{
return changed;
}