Cleanup: Use LISTBASE_FOREACH

This commit is contained in:
Hans Goudey 2020-11-04 14:14:16 -06:00
parent f45d79f180
commit 4d7ad82347
1 changed files with 1 additions and 3 deletions

View File

@ -325,13 +325,11 @@ static int wm_macro_end(wmOperator *op, int retval)
/* macro exec only runs exec calls */
static int wm_macro_exec(bContext *C, wmOperator *op)
{
wmOperator *opm;
int retval = OPERATOR_FINISHED;
wm_macro_start(op);
for (opm = op->macro.first; opm; opm = opm->next) {
LISTBASE_FOREACH (wmOperator *, opm, &op->macro) {
if (opm->type->exec) {
retval = opm->type->exec(C, opm);
OPERATOR_RETVAL_CHECK(retval);