diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2022-01-06 12:22:32 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2022-01-06 12:22:32 +0300 |
commit | 1484fe260be9601fe88a21225e05483dc0c280d9 (patch) | |
tree | 84fb917c3628e1efb4e7a6972e0b865cf429fa08 | |
parent | e766dc9189a49dc6afc9474ae75999e6f4f9d4ac (diff) |
Cleanup: Replace FINISHED with CANCELLED
As the operator does nothing, better use cancelled.
-rw-r--r-- | source/blender/editors/object/object_gpencil_modifier.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/object/object_gpencil_modifier.c b/source/blender/editors/object/object_gpencil_modifier.c index f9ad35d261d..5a6c25caacc 100644 --- a/source/blender/editors/object/object_gpencil_modifier.c +++ b/source/blender/editors/object/object_gpencil_modifier.c @@ -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) { |