diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-11-02 20:11:51 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-11-02 20:12:20 +0300 |
commit | c63d133f4dc2b227c6a5e5dbb23bcceae2c2eb7f (patch) | |
tree | 2e0d0897319ec24f5bc766df9a4c913175d1ff60 /source | |
parent | 3335618489ac2db30e95a7b4904b82df645df7a7 (diff) |
Small cleanup on curve separation error handling
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/curve/editcurve.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/curve/editcurve.c b/source/blender/editors/curve/editcurve.c index adddb593878..6331d9a3fac 100644 --- a/source/blender/editors/curve/editcurve.c +++ b/source/blender/editors/curve/editcurve.c @@ -1371,8 +1371,8 @@ static int separate_exec(bContext *C, wmOperator *op) return OPERATOR_CANCELLED; } - if (status.error_vertex_keys || status.error_generic) { - const int tot_errors = status.error_vertex_keys + status.error_generic; + const int tot_errors = status.error_vertex_keys + status.error_generic; + if (tot_errors > 0) { /* Some curves changed, but some curves failed: don't explain why it failed. */ if (status.changed) { |