Fix T47958: Crash in Walk or Fly Navigation in Camera mode when invoking from non-3DView region

This commit is contained in:
Bastien Montagne 2016-03-28 18:17:45 +02:00
parent 37b7b3a935
commit b1f918bcc5
2 changed files with 2 additions and 2 deletions

@ -1065,7 +1065,7 @@ void VIEW3D_OT_fly(wmOperatorType *ot)
ot->invoke = fly_invoke;
ot->cancel = fly_cancel;
ot->modal = fly_modal;
ot->poll = ED_operator_view3d_active;
ot->poll = ED_operator_region_view3d_active;
/* flags */
ot->flag = OPTYPE_BLOCKING;

@ -1421,7 +1421,7 @@ void VIEW3D_OT_walk(wmOperatorType *ot)
ot->invoke = walk_invoke;
ot->cancel = walk_cancel;
ot->modal = walk_modal;
ot->poll = ED_operator_view3d_active;
ot->poll = ED_operator_region_view3d_active;
/* flags */
ot->flag = OPTYPE_BLOCKING;