projects
/
blender.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9dbd53
)
Adding POINTER_GRAB flag to view 2d pan operator, to make it use continuous grab.
author
Martin Poirier <theeth@yahoo.com>
Thu, 17 Dec 2009 01:19:50 +0000
(
01:19
+0000)
committer
Martin Poirier <theeth@yahoo.com>
Thu, 17 Dec 2009 01:19:50 +0000
(
01:19
+0000)
source/blender/editors/interface/view2d_ops.c
patch
|
blob
|
history
diff --git
a/source/blender/editors/interface/view2d_ops.c
b/source/blender/editors/interface/view2d_ops.c
index 6579e30900bd27191299b2b0e064c19254e64fc8..8bd840f7e84cc880590f3b32020452eada6b21f7 100644
(file)
--- 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);