Commit: f679dfb52ad57d1dee6dc120531b78771aaafc82
Author: Antonio Vazquez
Date: Tue Apr 7 17:12:31 2020 +0200
Branches: greasepencil-object
https://developer.blender.org/rBf679dfb52ad57d1dee6dc120531b78771aaafc82
GPencil: Fix return value error
===================================================================
M source/blender/editors/gpencil/gpencil_mesh.c
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_mesh.c
b/source/blender/editors/gpencil/gpencil_mesh.c
index 516d7e5712d..7706db4b4a6 100644
--- a/source/blender/editors/gpencil/gpencil_mesh.c
+++ b/source/blender/editors/gpencil/gpencil_mesh.c
@@ -164,7 +164,7 @@ static int gp_bake_mesh_animation_exec(bContext *C,
wmOperator *op)
if (list.first == NULL) {
BKE_report(op->reports, RPT_INFO, "No valid object selected");
gp_bake_free_ob_list(&list);
- return OPERATOR_FINISHED;
+ return OPERATOR_CANCELLED;
}
/* Grab all relevant settings. */
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs