Commit: 261c12aab489d12db79d5c0f2e6e6a1cf19b8039
Author: Bastien Montagne
Date:   Mon Mar 28 18:17:45 2016 +0200
Branches: blender-v2.77-release
https://developer.blender.org/rB261c12aab489d12db79d5c0f2e6e6a1cf19b8039

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

===================================================================

M       source/blender/editors/space_view3d/view3d_fly.c
M       source/blender/editors/space_view3d/view3d_walk.c

===================================================================

diff --git a/source/blender/editors/space_view3d/view3d_fly.c 
b/source/blender/editors/space_view3d/view3d_fly.c
index f3ee99f..8418cf0 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 022b305..7e1202a 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;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to