diff options
author | Chris Blackbourn <chrisbblend@gmail.com> | 2022-09-18 08:03:40 +0300 |
---|---|---|
committer | Chris Blackbourn <chrisbblend@gmail.com> | 2022-09-20 01:00:41 +0300 |
commit | a24fc6bbc1ae3c0ee5a26c5b964af219215de692 (patch) | |
tree | 007f58081ebdc48a90102390796ce7a3deba9971 /source/blender/makesdna | |
parent | 7a67d69ca4fe807ea36c57166b89a6e42c25b909 (diff) |
UV: extend custom grid sizes to set each axis separately
For example, allows a custom UV grid size of 4 x 12.
TODO: Fix snapping with custom UV grid sizes.
Manifest Tasks: T78391
Differential Revision: https://developer.blender.org/D16000
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_space_types.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/makesdna/DNA_space_types.h b/source/blender/makesdna/DNA_space_types.h index a974330a2ac..44d4cef53a6 100644 --- a/source/blender/makesdna/DNA_space_types.h +++ b/source/blender/makesdna/DNA_space_types.h @@ -1236,11 +1236,10 @@ typedef struct SpaceImage { int tile_grid_shape[2]; /** - * UV editor custom-grid. Value of `N` will produce `NxN` grid. + * UV editor custom-grid. Value of `{M,N}` will produce `MxN` grid. * Use when #SI_CUSTOM_GRID is set. */ - int custom_grid_subdiv; - char _pad3[4]; + int custom_grid_subdiv[2]; MaskSpaceInfo mask_info; SpaceImageOverlay overlay; |