Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <bastien@blender.org>2020-12-11 13:05:28 +0300
committerBastien Montagne <bastien@blender.org>2020-12-11 13:05:28 +0300
commitf5c72467176c1f5e8922c86c697e58861cf782a4 (patch)
treef441d5d96b5b5df2884321db4098521c199e8ee1
parentf7e5f96f56b1594c718232a9541c35389f23abab (diff)
Fix wrong operator return values in Outliner code.
Mistakes in rBac8b641b77e0 and rBf254f66587f2. Spotted while inverstigating T83592.
-rw-r--r--source/blender/editors/space_outliner/outliner_tools.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_outliner/outliner_tools.c b/source/blender/editors/space_outliner/outliner_tools.c
index 159a4616ba7..098a0edb614 100644
--- a/source/blender/editors/space_outliner/outliner_tools.c
+++ b/source/blender/editors/space_outliner/outliner_tools.c
@@ -2791,7 +2791,7 @@ static int do_outliner_operation_event(bContext *C,
}
if (datalevel == TSE_ID_BASE) {
/* do nothing... there are no ops needed here yet */
- return 0;
+ return OPERATOR_CANCELLED;
}
if (datalevel == TSE_CONSTRAINT) {
return outliner_operator_menu(C, "OUTLINER_OT_constraint_operation");
@@ -2802,7 +2802,7 @@ static int do_outliner_operation_event(bContext *C,
return outliner_operator_menu(C, "OUTLINER_OT_data_operation");
}
- return 0;
+ return OPERATOR_CANCELLED;
}
static int outliner_operation(bContext *C, wmOperator *op, const wmEvent *event)