[Bf-blender-cvs] [c63d133f4dc] blender2.8: Small cleanup on curve separation error handling
Dalai Felinto
noreply at git.blender.org
Fri Nov 2 18:13:09 CET 2018
Commit: c63d133f4dc2b227c6a5e5dbb23bcceae2c2eb7f
Author: Dalai Felinto
Date: Fri Nov 2 14:11:51 2018 -0300
Branches: blender2.8
https://developer.blender.org/rBc63d133f4dc2b227c6a5e5dbb23bcceae2c2eb7f
Small cleanup on curve separation error handling
===================================================================
M source/blender/editors/curve/editcurve.c
===================================================================
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) {
More information about the Bf-blender-cvs
mailing list