diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-08-09 00:38:55 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-08-09 00:38:55 +0400 |
commit | 5e0f254afa8caed1febbe02130cc313a53149efe (patch) | |
tree | 859b5590307db3310e070b258c04697dabaac2a1 /source/blender/editors/space_graph/graph_select.c | |
parent | 6cfb7f50d2856068f74125321a348e43b7c9c3d4 (diff) |
utility functions for getting/setting rectangles for operators.
Diffstat (limited to 'source/blender/editors/space_graph/graph_select.c')
-rw-r--r-- | source/blender/editors/space_graph/graph_select.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/editors/space_graph/graph_select.c b/source/blender/editors/space_graph/graph_select.c index 109241ac366..781099f6a68 100644 --- a/source/blender/editors/space_graph/graph_select.c +++ b/source/blender/editors/space_graph/graph_select.c @@ -316,10 +316,7 @@ static int graphkeys_borderselect_exec(bContext *C, wmOperator *op) incl_handles = RNA_boolean_get(op->ptr, "include_handles"); /* get settings from operator */ - rect.xmin = RNA_int_get(op->ptr, "xmin"); - rect.ymin = RNA_int_get(op->ptr, "ymin"); - rect.xmax = RNA_int_get(op->ptr, "xmax"); - rect.ymax = RNA_int_get(op->ptr, "ymax"); + WM_operator_properties_border_to_rcti(op, &rect); /* selection 'mode' depends on whether borderselect region only matters on one axis */ if (RNA_boolean_get(op->ptr, "axis_range")) { |