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:
authorDalai Felinto <dfelinto@gmail.com>2018-11-02 20:11:51 +0300
committerDalai Felinto <dfelinto@gmail.com>2018-11-02 20:12:20 +0300
commitc63d133f4dc2b227c6a5e5dbb23bcceae2c2eb7f (patch)
tree2e0d0897319ec24f5bc766df9a4c913175d1ff60 /source/blender/editors/curve
parent3335618489ac2db30e95a7b4904b82df645df7a7 (diff)
Small cleanup on curve separation error handling
Diffstat (limited to 'source/blender/editors/curve')
-rw-r--r--source/blender/editors/curve/editcurve.c4
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) {