Fix T65311: crash using 3D viewport panning outside viewport
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Fri, 31 May 2019 16:00:08 +0000 (18:00 +0200)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Fri, 31 May 2019 16:00:08 +0000 (18:00 +0200)
source/blender/editors/space_view3d/view3d_edit.c

index 63d28c7d2ecacb5ea07e2d4be007e32635d607e9..1ee572211c0229f481c810193a10ada79bdc5e4b 100644 (file)
@@ -1790,7 +1790,7 @@ void VIEW3D_OT_move(wmOperatorType *ot)
   /* api callbacks */
   ot->invoke = viewmove_invoke;
   ot->modal = viewmove_modal;
-  ot->poll = ED_operator_view3d_active;
+  ot->poll = ED_operator_region_view3d_active;
   ot->cancel = viewmove_cancel;
 
   /* flags */