Small cleanup on curve separation error handling

This commit is contained in:
Dalai Felinto 2018-11-02 14:11:51 -03:00
parent 3335618489
commit c63d133f4d
1 changed files with 2 additions and 2 deletions

View File

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