Disallow navigating away from a full-temp screen

This commit is contained in:
Campbell Barton 2015-08-26 13:51:41 +10:00
parent acb99cfd7b
commit 67970da107
1 changed files with 2 additions and 1 deletions

View File

@ -2373,8 +2373,9 @@ static int screen_set_exec(bContext *C, wmOperator *op)
int delta = RNA_int_get(op->ptr, "delta");
/* temp screens are for userpref or render display */
if (screen->temp)
if (screen->temp || (sa->full && sa->full->temp)) {
return OPERATOR_CANCELLED;
}
if (delta == 1) {
while (tot--) {