diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2016-03-28 19:17:45 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2016-03-28 19:19:43 +0300 |
commit | b1f918bcc53d552dec2a5327b15f77751dca0712 (patch) | |
tree | 734d1aedba4d99bc3c070c229efb3131276feef3 /source/blender/editors/space_view3d | |
parent | 37b7b3a9355af05ad322491c20dab9fb3e79b54d (diff) |
Fix T47958: Crash in Walk or Fly Navigation in Camera mode when invoking from non-3DView region
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_fly.c | 2 | ||||
-rw-r--r-- | source/blender/editors/space_view3d/view3d_walk.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/view3d_fly.c b/source/blender/editors/space_view3d/view3d_fly.c index f3ee99fc3bf..8418cf0980c 100644 --- a/source/blender/editors/space_view3d/view3d_fly.c +++ b/source/blender/editors/space_view3d/view3d_fly.c @@ -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; diff --git a/source/blender/editors/space_view3d/view3d_walk.c b/source/blender/editors/space_view3d/view3d_walk.c index 022b305e5ac..7e1202aef77 100644 --- a/source/blender/editors/space_view3d/view3d_walk.c +++ b/source/blender/editors/space_view3d/view3d_walk.c @@ -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; |