Cleanup: unused var
This commit is contained in:
parent
27de412ca8
commit
e2c87c7e94
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue