Fix wrong operator return values in Outliner code.

Mistakes in rBac8b641b77e0 and rBf254f66587f2.

Spotted while inverstigating T83592.
This commit is contained in:
Bastien Montagne 2020-12-11 11:05:28 +01:00
parent f7e5f96f56
commit f5c7246717
1 changed files with 2 additions and 2 deletions

View File

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