Correction to previous render border commit

Was using wrong bitfield check.
This commit is contained in:
Sergey Sharybin 2014-12-18 14:43:08 +05:00
parent 20006e4a67
commit 8627d65951
1 changed files with 1 additions and 1 deletions

View File

@ -3125,7 +3125,7 @@ static int render_border_exec(bContext *C, wmOperator *op)
}
rd = RE_engine_get_render_data(re);
if (rd->mode & (R_BORDER|R_CROP)) {
if ((rd->mode & (R_BORDER|R_CROP)) == (R_BORDER|R_CROP)) {
BKE_report(op->reports, RPT_INFO, "Can not set border from a cropped render");
return OPERATOR_CANCELLED;
}