diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-05-26 12:43:50 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-05-26 12:46:05 +0300 |
commit | e5fbeba0b3a6e9eea4a8747e97033bbd0d7f017b (patch) | |
tree | ea11d2a4f2e1c99a992927e95b196f0048a9cac8 /source/blender/makesdna/DNA_image_types.h | |
parent | 569a2035c7e450fd32c046768e045964a159a02b (diff) |
Images: Solve broken forward compatibility with packed images
Use first packed image as legacy image->packedfile, so saving .blend file with
latest builds makes it so packed images are not lost when opening with previous
releases.
This will only work reliably if mutliview is not used, otherwise it'll be only
first view in the .blend file, which is rather expected since previous releases
are not aware of views.
Diffstat (limited to 'source/blender/makesdna/DNA_image_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_image_types.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_image_types.h b/source/blender/makesdna/DNA_image_types.h index da5eee07e52..0e2a41a0aeb 100644 --- a/source/blender/makesdna/DNA_image_types.h +++ b/source/blender/makesdna/DNA_image_types.h @@ -115,7 +115,7 @@ typedef struct Image { unsigned int bindcode; /* only for current image... */ unsigned int *repbind; /* for repeat of parts of images */ - struct PackedFile *packedfile; /* deprecated */ + struct PackedFile *packedfile DNA_DEPRECATED; /* deprecated */ struct ListBase packedfiles; struct PreviewImage *preview; |