Fix #107805: Render border without an active region crashes

This commit is contained in:
Campbell Barton
2024-01-17 11:11:12 +11:00
parent 58e1e88dc3
commit fd4dc38264

View File

@@ -340,7 +340,7 @@ void VIEW3D_OT_render_border(wmOperatorType *ot)
ot->modal = WM_gesture_box_modal;
ot->cancel = WM_gesture_box_cancel;
ot->poll = ED_operator_view3d_active;
ot->poll = ED_operator_region_view3d_active;
/* flags */
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;