Merge branch 'blender-v3.0-release'

This commit is contained in:
Campbell Barton 2021-11-10 21:21:58 +11:00
commit a49d6a5350
1 changed files with 1 additions and 1 deletions

View File

@ -1348,7 +1348,7 @@ void UI_view2d_dot_grid_draw(const View2D *v2d,
const float min_step,
const int grid_levels)
{
BLI_assert(grid_levels > 0 && grid_levels < 10);
BLI_assert(grid_levels >= 0 && grid_levels < 10);
const float zoom_x = (float)(BLI_rcti_size_x(&v2d->mask) + 1) / BLI_rctf_size_x(&v2d->cur);
const float zoom_normalized = (zoom_x - v2d->minzoom) / (v2d->maxzoom - v2d->minzoom);