use min_ max_ functions in more places.

also fix minor error in MOD decimate when the modifier did nothing the reported face count would be wrong.
This commit is contained in:
2012-10-23 16:21:55 +00:00
parent c623ba5e4b
commit fec81d9b56
29 changed files with 91 additions and 86 deletions

View File

@@ -1579,7 +1579,7 @@ static PyObject *Matrix_str(MatrixObject *self)
maxsize[col] = 0;
for (row = 0; row < self->num_row; row++) {
int size = BLI_snprintf(dummy_buf, sizeof(dummy_buf), "%.4f", MATRIX_ITEM(self, row, col));
maxsize[col] = MAX2(maxsize[col], size);
maxsize[col] = max_ii(maxsize[col], size);
}
}