[Bf-blender-cvs] [ddf4b909de1] master: Cleanup: Rearrange SELECTID_Context members for better alignment
Germano Cavalcante
noreply at git.blender.org
Wed Jun 17 17:16:59 CEST 2020
Commit: ddf4b909de170d9d72f6267b62a0bbab1083233a
Author: Germano Cavalcante
Date: Wed Jun 17 12:08:55 2020 -0300
Branches: master
https://developer.blender.org/rBddf4b909de170d9d72f6267b62a0bbab1083233a
Cleanup: Rearrange SELECTID_Context members for better alignment
===================================================================
M source/blender/draw/DRW_select_buffer.h
===================================================================
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,
More information about the Bf-blender-cvs
mailing list