Fix T47958: Crash in Walk or Fly Navigation in Camera mode when invoking from non-3DView region
This commit is contained in:
parent
37b7b3a935
commit
b1f918bcc5
Notes:
blender-bot
2023-02-14 08:03:04 +01:00
Referenced by issue #47958, Crash in Walk Navigation in Camera mode (walk_invoke) on files that are just saved/just opened
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue