Cleanup: Replace FINISHED with CANCELLED

As the operator does nothing, better use cancelled.
This commit is contained in:
Antonio Vazquez 2022-01-06 10:22:32 +01:00
parent e766dc9189
commit 1484fe260b
1 changed files with 3 additions and 3 deletions

View File

@ -973,7 +973,7 @@ static int dash_segment_add_exec(bContext *C, wmOperator *op)
op, ob, eGpencilModifierType_Dash);
if (dmd == NULL) {
return OPERATOR_FINISHED;
return OPERATOR_CANCELLED;
}
const int new_active_index = dmd->segment_active_index + 1;
DashGpencilModifierSegment *new_segments = MEM_malloc_arrayN(
@ -1040,7 +1040,7 @@ static int dash_segment_remove_exec(bContext *C, wmOperator *op)
op, ob, eGpencilModifierType_Dash);
if (dmd == NULL) {
return OPERATOR_FINISHED;
return OPERATOR_CANCELLED;
}
if (dmd->segment_active_index < 0 || dmd->segment_active_index >= dmd->segments_len) {
@ -1120,7 +1120,7 @@ static int dash_segment_move_exec(bContext *C, wmOperator *op)
op, ob, eGpencilModifierType_Dash);
if (dmd == NULL) {
return OPERATOR_FINISHED;
return OPERATOR_CANCELLED;
}
if (dmd->segments_len < 2) {