diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2015-04-20 20:57:57 +0300 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2015-04-21 19:37:06 +0300 |
commit | 50bfc4bfa0eabb68fcb5b5e82f80281fbaddcfeb (patch) | |
tree | 5ee5ecd548454b8464efb35ded40a22792d17e36 /source/blender/imbuf/intern/metadata.c | |
parent | f9972fa53eaab4d1e8fd7b435f6f65c1ac5501e1 (diff) |
Metadata display support - patch by Julian and me.
Basically, blender adds a few metadata fields to images when
we render an image. Those metadata can now be viewed in the
image editor.
Also, made sure metadata are available when we write imbufs
to disc with "Save As". There may be more cases here that need
fixing, but this means that loading an image with metadata
will now properly preserve them in blender.
Diffstat (limited to 'source/blender/imbuf/intern/metadata.c')
-rw-r--r-- | source/blender/imbuf/intern/metadata.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/imbuf/intern/metadata.c b/source/blender/imbuf/intern/metadata.c index 8cb5070dd62..134bbe88f15 100644 --- a/source/blender/imbuf/intern/metadata.c +++ b/source/blender/imbuf/intern/metadata.c @@ -79,6 +79,13 @@ bool IMB_metadata_get_field(struct ImBuf *img, const char *key, char *field, con return retval; } +void IMB_metadata_copy(struct ImBuf *dimb, struct ImBuf *simb) +{ + if (simb->metadata) { + dimb->metadata = IDP_CopyProperty(simb->metadata); + } +} + bool IMB_metadata_add_field(struct ImBuf *img, const char *key, const char *value) { IDProperty *prop; |