diff options
author | Martin Poirier <theeth@yahoo.com> | 2009-12-17 04:19:50 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2009-12-17 04:19:50 +0300 |
commit | 8d996df7ceaf14f34c05a2b3bbbda57522674ef9 (patch) | |
tree | 0088adf6e645e1958eb20afc7ecb8437af4f3a6b /source | |
parent | b9dbd53aeafd7105621bf9b2975b5a0885017dd6 (diff) |
Adding POINTER_GRAB flag to view 2d pan operator, to make it use continuous grab.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/interface/view2d_ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/view2d_ops.c b/source/blender/editors/interface/view2d_ops.c index 6579e30900b..8bd840f7e84 100644 --- a/source/blender/editors/interface/view2d_ops.c +++ b/source/blender/editors/interface/view2d_ops.c @@ -274,7 +274,7 @@ void VIEW2D_OT_pan(wmOperatorType *ot) ot->cancel= view_pan_cancel; /* operator is repeatable */ - ot->flag= OPTYPE_BLOCKING; + ot->flag= OPTYPE_BLOCKING|OPTYPE_GRAB_POINTER; /* rna - must keep these in sync with the other operators */ RNA_def_int(ot->srna, "deltax", 0, INT_MIN, INT_MAX, "Delta X", "", INT_MIN, INT_MAX); |