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_view3d/view3d_select.c | |
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_view3d/view3d_select.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_select.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/source/blender/editors/space_view3d/view3d_select.c b/source/blender/editors/space_view3d/view3d_select.c index 7d927766bbd..7f99a81ba99 100644 --- a/source/blender/editors/space_view3d/view3d_select.c +++ b/source/blender/editors/space_view3d/view3d_select.c @@ -2896,9 +2896,7 @@ void VIEW3D_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); } |