Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorLukas Toenne <lukas.toenne@googlemail.com>2012-03-01 12:17:16 +0400
committerLukas Toenne <lukas.toenne@googlemail.com>2012-03-01 12:17:16 +0400
commit77442de6c0a36c7368a48162ae48168709a1b06d (patch)
tree74c572892eac4e736d840d1aa804b897b222abca /source
parent2eb29e4788008c1346b3a757cccec503b73c9b90 (diff)
* Removed DNA_DEPRECATED tag from old NodeImageFile struct typedef, it doesn't work that way (duh)
* Moved format field and added (deprecated) sfra and efra ints to ensure some forward compatibility of file output node. Earlier blender versions will simple interpret the struct as NodeFileImage, so by matching the first fields the numbers can stay somewhat valid.
Diffstat (limited to 'source')
-rw-r--r--source/blender/makesdna/DNA_node_types.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_node_types.h b/source/blender/makesdna/DNA_node_types.h
index ed9eaff4b92..f0d0a556d92 100644
--- a/source/blender/makesdna/DNA_node_types.h
+++ b/source/blender/makesdna/DNA_node_types.h
@@ -352,17 +352,19 @@ typedef struct NodeHueSat {
float hue, sat, val;
} NodeHueSat;
-typedef DNA_DEPRECATED struct NodeImageFile {
+typedef struct NodeImageFile {
char name[1024]; /* 1024 = FILE_MAX */
struct ImageFormatData im_format;
int sfra, efra;
} NodeImageFile;
+/* XXX first struct fields should match NodeImageFile to ensure forward compatibility */
typedef struct NodeImageMultiFile {
char base_path[1024]; /* 1024 = FILE_MAX */
+ ImageFormatData format;
+ int sfra DNA_DEPRECATED, efra DNA_DEPRECATED; /* XXX old frame rand values from NodeImageFile for forward compatibility */
int active_input; /* selected input in details view list */
int pad;
- ImageFormatData format;
} NodeImageMultiFile;
typedef struct NodeImageMultiFileSocket {
short use_render_format DNA_DEPRECATED;