diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-04-24 08:49:25 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-04-24 08:52:01 +0300 |
commit | d4ffd1d91f84e956c1f9832700b0f42cd150c2f1 (patch) | |
tree | e1cf22a19d5f4a6f396483cb4449ca75892441b2 /source/blender/makesdna/DNA_screen_types.h | |
parent | c1e4b369b0f2fab20e7553d2268bc3bafac004d5 (diff) |
Cleanup: declare values for enum types
Avoids accidents when adding/removing items from an enum.
Diffstat (limited to 'source/blender/makesdna/DNA_screen_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_screen_types.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_screen_types.h b/source/blender/makesdna/DNA_screen_types.h index 9a59b69604d..8497d363179 100644 --- a/source/blender/makesdna/DNA_screen_types.h +++ b/source/blender/makesdna/DNA_screen_types.h @@ -306,8 +306,8 @@ enum GlobalAreaFlag { }; typedef enum GlobalAreaAlign { - GLOBAL_AREA_ALIGN_TOP, - GLOBAL_AREA_ALIGN_BOTTOM, + GLOBAL_AREA_ALIGN_TOP = 0, + GLOBAL_AREA_ALIGN_BOTTOM = 1, } GlobalAreaAlign; typedef struct ScrArea_Runtime { |