UI: disable UV operator register

Was showing redo panel for cursor & selection operators.
This commit is contained in:
Campbell Barton 2018-10-04 12:58:36 +10:00
parent 46eb050c9d
commit d23447d8d5
1 changed files with 2 additions and 5 deletions

View File

@ -3287,7 +3287,7 @@ static void UV_OT_select_border(wmOperatorType *ot)
ot->cancel = WM_gesture_border_cancel;
/* flags */
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
ot->flag = OPTYPE_UNDO;
/* properties */
RNA_def_boolean(ot->srna, "pinned", 0, "Pinned", "Border select pinned UVs only");
@ -3427,7 +3427,7 @@ static void UV_OT_circle_select(wmOperatorType *ot)
ot->cancel = WM_gesture_circle_cancel;
/* flags */
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
ot->flag = OPTYPE_UNDO;
/* properties */
WM_operator_properties_gesture_circle_select(ot);
@ -4388,9 +4388,6 @@ static void UV_OT_cursor_set(wmOperatorType *ot)
ot->invoke = uv_set_2d_cursor_invoke;
ot->poll = uv_set_2d_cursor_poll;
/* flags */
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
/* properties */
RNA_def_float_vector(ot->srna, "location", 2, NULL, -FLT_MAX, FLT_MAX, "Location",
"Cursor location in normalized (0.0-1.0) coordinates", -10.0f, 10.0f);