Cleanup: unused var

This commit is contained in:
Campbell Barton 2018-06-15 08:02:17 +02:00
parent 27de412ca8
commit e2c87c7e94
2 changed files with 3 additions and 4 deletions

View File

@ -3923,10 +3923,9 @@ static void direct_link_image(FileData *fd, Image *ima)
/* undo system, try to restore render buffers */
link_list(fd, &(ima->renderslots));
if (fd->imamap) {
int a;
LISTBASE_FOREACH(RenderSlot *, slot, &ima->renderslots)
LISTBASE_FOREACH(RenderSlot *, slot, &ima->renderslots) {
slot->render = newimaadr(fd, slot->render);
}
}
else {
LISTBASE_FOREACH(RenderSlot *, slot, &ima->renderslots)

View File

@ -319,7 +319,7 @@ int ED_undo_operator_repeat(bContext *C, wmOperator *op)
/* keep in sync with logic in view3d_panel_operator_redo() */
ARegion *ar_orig = CTX_wm_region(C);
ARegion *ar_win = BKE_area_find_region_active_win(CTX_wm_area(C));
if (ar_win) {
CTX_wm_region_set(C, ar_win);
}