Adding POINTER_GRAB flag to view 2d pan operator, to make it use continuous grab.

This commit is contained in:
2009-12-17 01:19:50 +00:00
parent b9dbd53aea
commit 8d996df7ce

View File

@@ -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);