diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2020-06-17 18:08:55 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2020-06-17 18:16:32 +0300 |
commit | ddf4b909de170d9d72f6267b62a0bbab1083233a (patch) | |
tree | 9db4c8f9f6b31da990eb028202a2eaafc8240440 /source/blender/draw | |
parent | 13f591d400e2d17633bf7ebba9c7890fd563e4d2 (diff) |
Cleanup: Rearrange SELECTID_Context members for better alignment
Diffstat (limited to 'source/blender/draw')
-rw-r--r-- | source/blender/draw/DRW_select_buffer.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/draw/DRW_select_buffer.h b/source/blender/draw/DRW_select_buffer.h index 6ebc30d0382..66dee3a9aa9 100644 --- a/source/blender/draw/DRW_select_buffer.h +++ b/source/blender/draw/DRW_select_buffer.h @@ -56,16 +56,16 @@ struct ObjectOffsets { uint vert; }; -struct SELECTID_Context { +typedef struct SELECTID_Context { /* All context objects */ struct Object **objects; - uint objects_len; /* Array with only drawn objects. When a new object is found within the rect, * it is added to the end of the list. * The list is reset to any viewport or context update. */ - struct ObjectOffsets *index_offsets; struct Object **objects_drawn; + struct ObjectOffsets *index_offsets; + uint objects_len; uint objects_drawn_len; /** Total number of element indices `index_offsets[object_drawn_len - 1].vert`. */ @@ -73,13 +73,13 @@ struct SELECTID_Context { short select_mode; + /* rect is used to check which objects whose indexes need to be drawn. */ + rcti last_rect; + /* To check for updates. */ float persmat[4][4]; bool is_dirty; - - /* rect is used to check which objects whose indexes need to be drawn. */ - rcti last_rect; -}; +} SELECTID_Context; /* draw_select_buffer.c */ bool DRW_select_buffer_elem_get(const uint sel_id, |