diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-10-09 13:15:47 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-10-09 13:17:31 +0400 |
commit | 375d2dc85535b9f08fd2e854c80434eac1c28a67 (patch) | |
tree | 9cb344ef18c86d8286abfb2933d37e98cc48754c /source/blender/makesdna/DNA_image_types.h | |
parent | fe9394741b7ac9ca153c602d6f58664b27438d56 (diff) |
Implement custom names for render slots
Basically the title tells it all, quite straightforward implementation.
The only thing is the image.render_slot which used to represent the active
render slot index is now moved to image.render_slots.active_index.
Reviewers: venomgfx, campbellbarton
Differential Revision: https://developer.blender.org/D821
Diffstat (limited to 'source/blender/makesdna/DNA_image_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_image_types.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_image_types.h b/source/blender/makesdna/DNA_image_types.h index b66772f0bb9..fcb894c9ebf 100644 --- a/source/blender/makesdna/DNA_image_types.h +++ b/source/blender/makesdna/DNA_image_types.h @@ -64,6 +64,10 @@ typedef struct ImageUser { } ImageUser; +typedef struct RenderSlot { + char name[64]; /* 64 = MAX_NAME */ +} RenderSlot; + /* iuser->flag */ #define IMA_ANIM_ALWAYS 1 #define IMA_ANIM_REFRESHED 2 @@ -119,6 +123,7 @@ typedef struct Image { char alpha_mode; char pad[7]; + RenderSlot render_slots[8]; /* 8 = IMA_MAX_RENDER_SLOT */ } Image; |