Fix T37506: Duplicate Area into New, was disabled on fullscreen but works ok.

This commit is contained in:
Campbell Barton 2013-11-19 02:52:34 +11:00
parent b6b4aabf04
commit 67aff56c01
Notes: blender-bot 2023-02-14 11:35:41 +01:00
Referenced by issue #37506, Duplicate Area into New window not working
1 changed files with 1 additions and 8 deletions

View File

@ -915,14 +915,7 @@ static int area_dupli_invoke(bContext *C, wmOperator *op, const wmEvent *event)
sa = sad->sa1;
}
/* poll() checks area context, but we don't accept full-area windows */
if (sc->full != SCREENNORMAL) {
if (event->type == EVT_ACTIONZONE_AREA)
actionzone_exit(op);
return OPERATOR_CANCELLED;
}
/* adds window to WM */
rect = sa->totrct;
BLI_rcti_translate(&rect, win->posx, win->posy);