diff options
author | Christoph Lendenfeld <chris.lend@gmx.at> | 2021-12-23 16:31:28 +0300 |
---|---|---|
committer | Christoph Lendenfeld <chris.lend@gmx.at> | 2021-12-23 16:31:28 +0300 |
commit | 7a71a95f32e57d8df51619e2e52384e5d217c439 (patch) | |
tree | bc57397759880288c61a7d065f36875b2e10d6c6 /source | |
parent | d71009d980284c485ec1b431ee85e918410eb526 (diff) |
Graph Slider Ops: Show error when no valid keys are found
When using graph slider operators like D9374
it showed a warning when no keys were selected.
However since that stops the modal operation it should be an Error.
Also the message was misleading
since it could error for different reasons than stated.
Reviewed by: Sybren A. Stüvel
Differential Revision: https://developer.blender.org/D13655
Ref: D13655
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_graph/graph_slider_ops.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/editors/space_graph/graph_slider_ops.c b/source/blender/editors/space_graph/graph_slider_ops.c index 0bb5e8b8d9c..30293f25332 100644 --- a/source/blender/editors/space_graph/graph_slider_ops.c +++ b/source/blender/editors/space_graph/graph_slider_ops.c @@ -313,8 +313,7 @@ static int graph_slider_invoke(bContext *C, wmOperator *op, const wmEvent *event ED_slider_init(gso->slider, event); if (gso->bezt_arr_list.first == NULL) { - WM_report(RPT_WARNING, - "Fcurve Slider: Can't work on baked channels. Unbake them and try again."); + WM_report(RPT_ERROR, "Cannot find keys to operate on."); graph_slider_exit(C, op); return OPERATOR_CANCELLED; } |