From 5e0f254afa8caed1febbe02130cc313a53149efe Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 8 Aug 2012 20:38:55 +0000 Subject: utility functions for getting/setting rectangles for operators. --- source/blender/editors/space_outliner/outliner_select.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'source/blender/editors/space_outliner') diff --git a/source/blender/editors/space_outliner/outliner_select.c b/source/blender/editors/space_outliner/outliner_select.c index 096713f9cd3..8b7cf406642 100644 --- a/source/blender/editors/space_outliner/outliner_select.c +++ b/source/blender/editors/space_outliner/outliner_select.c @@ -899,12 +899,9 @@ static int outliner_border_select_exec(bContext *C, wmOperator *op) rctf rectf; int gesture_mode = RNA_int_get(op->ptr, "gesture_mode"); - rect.xmin = RNA_int_get(op->ptr, "xmin"); - rect.ymin = RNA_int_get(op->ptr, "ymin"); - UI_view2d_region_to_view(&ar->v2d, rect.xmin, rect.ymin, &rectf.xmin, &rectf.ymin); + WM_operator_properties_border_to_rcti(op, &rect); - rect.xmax = RNA_int_get(op->ptr, "xmax"); - rect.ymax = RNA_int_get(op->ptr, "ymax"); + UI_view2d_region_to_view(&ar->v2d, rect.xmin, rect.ymin, &rectf.xmin, &rectf.ymin); UI_view2d_region_to_view(&ar->v2d, rect.xmax, rect.ymax, &rectf.xmax, &rectf.ymax); for (te = soops->tree.first; te; te = te->next) { -- cgit v1.2.3