diff options
author | Chris Blackbourn <chrisbblend@gmail.com> | 2022-09-22 04:16:34 +0300 |
---|---|---|
committer | Chris Blackbourn <chrisbblend@gmail.com> | 2022-09-22 08:20:11 +0300 |
commit | c50335b359e06751cba81e3d33a4ee0ae71daffb (patch) | |
tree | eaa3d2e63d621c499d426a5b907975138d1f0994 /source/blender/draw/engines | |
parent | 3185c3bc742e12080a5f482b4239b3ebe068ac64 (diff) |
UV: add toggle to show the grid over the image
In UV editor, previously unable to see grid and image at same time.
Maniphest Tasks: T78391
Differential Revision: https://developer.blender.org/D16038
Diffstat (limited to 'source/blender/draw/engines')
-rw-r--r-- | source/blender/draw/engines/overlay/overlay_grid.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/draw/engines/overlay/overlay_grid.cc b/source/blender/draw/engines/overlay/overlay_grid.cc index 4a4d9ee6c19..89fc6ec2eb7 100644 --- a/source/blender/draw/engines/overlay/overlay_grid.cc +++ b/source/blender/draw/engines/overlay/overlay_grid.cc @@ -51,6 +51,9 @@ void OVERLAY_grid_init(OVERLAY_Data *vedata) true; if (background_enabled) { grid_flag = GRID_BACK | PLANE_IMAGE; + if (sima->flag & SI_GRID_OVER_IMAGE) { + grid_flag = PLANE_IMAGE; + } } const bool draw_grid = is_uv_edit || !ED_space_image_has_buffer(sima); |