Commit: 1484fe260be9601fe88a21225e05483dc0c280d9
Author: Antonio Vazquez
Date:   Thu Jan 6 10:22:32 2022 +0100
Branches: master
https://developer.blender.org/rB1484fe260be9601fe88a21225e05483dc0c280d9

Cleanup: Replace FINISHED with CANCELLED

As the operator does nothing, better use cancelled.

===================================================================

M       source/blender/editors/object/object_gpencil_modifier.c

===================================================================

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) {

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to