WM: allow filesel to execute a modal operator

This commit is contained in:
Campbell Barton
2016-01-28 19:52:49 +11:00
parent 30086eafe5
commit 2a8f1c656c

View File

@@ -1890,7 +1890,9 @@ static int wm_handler_fileselect_do(bContext *C, ListBase *handlers, wmEventHand
WM_operator_last_properties_store(handler->op);
}
WM_operator_free(handler->op);
if (retval & (OPERATOR_CANCELLED | OPERATOR_FINISHED)) {
WM_operator_free(handler->op);
}
}
else {
if (handler->op->type->cancel) {