Render: set minimum render size to 1x1 instead of 2x2. As far as I can tell this

works ok, and it's useful for debugging.
This commit is contained in:
Brecht Van Lommel
2013-01-15 10:47:13 +00:00
parent 15638eaa6f
commit 8b204f131a

View File

@@ -469,7 +469,7 @@ void RE_InitState(Render *re, Render *source, RenderData *rd, SceneRenderLayer *
re->recty = winy;
}
if (re->rectx < 2 || re->recty < 2 || (BKE_imtype_is_movie(rd->im_format.imtype) &&
if (re->rectx < 1 || re->recty < 1 || (BKE_imtype_is_movie(rd->im_format.imtype) &&
(re->rectx < 16 || re->recty < 16) ))
{
BKE_report(re->reports, RPT_ERROR, "Image too small");