UI: Correct code cleanup

Old code commented to reverse list in fact did nothing, replacing with call to reverse broke menu arrowkeys direction.
This commit is contained in:
Campbell Barton
2014-07-24 15:08:52 +10:00
parent 23660438ad
commit 4eedec8681

View File

@@ -3811,9 +3811,6 @@ void uiBlockFlipOrder(uiBlock *block)
but->rect.ymax = centy - (but->rect.ymax - centy);
SWAP(float, but->rect.ymin, but->rect.ymax);
}
/* also flip order in block itself, for example for arrowkey */
BLI_listbase_reverse(&block->buttons);
}