diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-10-16 07:32:09 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-10-16 07:32:09 +0300 |
commit | 8bda35d2f49879ced26e9069bce14ebf368761b3 (patch) | |
tree | ec92e726a8581f02183865e4830e4acc6acc3a94 /source/blender/editors/space_action | |
parent | 137586a13c758d95472c3a3eabfc7dd4b22b7502 (diff) |
WM: remove hard-coded circle radius memory
Replace with operator type 'last_properties'.
Also use generic function for circle gesture properties.
Diffstat (limited to 'source/blender/editors/space_action')
-rw-r--r-- | source/blender/editors/space_action/action_select.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/source/blender/editors/space_action/action_select.c b/source/blender/editors/space_action/action_select.c index 17edbc6cc1d..6d785e1f7df 100644 --- a/source/blender/editors/space_action/action_select.c +++ b/source/blender/editors/space_action/action_select.c @@ -629,11 +629,9 @@ void ACTION_OT_select_circle(wmOperatorType *ot) /* flags */ ot->flag = OPTYPE_UNDO; - - RNA_def_int(ot->srna, "x", 0, INT_MIN, INT_MAX, "X", "", INT_MIN, INT_MAX); - RNA_def_int(ot->srna, "y", 0, INT_MIN, INT_MAX, "Y", "", INT_MIN, INT_MAX); - RNA_def_int(ot->srna, "radius", 1, 1, INT_MAX, "Radius", "", 1, INT_MAX); - RNA_def_int(ot->srna, "gesture_mode", 0, INT_MIN, INT_MAX, "Event Type", "", INT_MIN, INT_MAX); + + /* properties */ + WM_operator_properties_gesture_circle(ot); } /* ******************** Column Select Operator **************************** */ |