Render border: skip unnecessary uncropping if the border covers the entire image.

This commit is contained in:
Brecht Van Lommel 2016-07-05 01:39:13 +02:00
parent 7fcab3324b
commit 29c38335a1
1 changed files with 7 additions and 0 deletions

View File

@ -722,6 +722,13 @@ void RE_InitState(Render *re, Render *source, RenderData *rd,
re->r.size = source->r.size;
}
/* disable border if it's a full render anyway */
if (re->r.border.xmin == 0.0f && re->r.border.xmax == 1.0f &&
re->r.border.ymin == 0.0f && re->r.border.ymax == 1.0f)
{
re->r.mode &= ~R_BORDER;
}
re_init_resolution(re, source, winx, winy, disprect);
if (re->rectx < 1 || re->recty < 1 || (BKE_imtype_is_movie(rd->im_format.imtype) &&