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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user