From 375d2dc85535b9f08fd2e854c80434eac1c28a67 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 9 Oct 2014 11:15:47 +0200 Subject: 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 --- source/blender/makesdna/DNA_image_types.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/blender/makesdna/DNA_image_types.h') 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; -- cgit v1.2.3