From f525483d837f8f91876ba395134c3ed263dcc7c2 Mon Sep 17 00:00:00 2001 From: Antony Riakiotakis Date: Wed, 1 Jul 2015 15:23:09 +0200 Subject: Sequencer metadata: Add option to render strip metadata to final result, bypassing current scene metadata. --- source/blender/imbuf/intern/openexr/openexr_api.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/imbuf/intern/openexr/openexr_api.cpp') diff --git a/source/blender/imbuf/intern/openexr/openexr_api.cpp b/source/blender/imbuf/intern/openexr/openexr_api.cpp index 44b7fbf6315..6bb1f0cd0d3 100644 --- a/source/blender/imbuf/intern/openexr/openexr_api.cpp +++ b/source/blender/imbuf/intern/openexr/openexr_api.cpp @@ -364,7 +364,7 @@ static void openexr_header_metadata(Header *header, struct ImBuf *ibuf) addXDensity(*header, ibuf->ppm[0] / 39.3700787); /* 1 meter = 39.3700787 inches */ } -static void openexr_header_metadata_callback(void *data, const char *propname, const char *prop) +static void openexr_header_metadata_callback(void *data, const char *propname, char *prop, int UNUSED(len)) { Header *header = (Header *)data; header->insert(propname, StringAttribute(prop)); @@ -860,7 +860,7 @@ int IMB_exr_begin_write(void *handle, const char *filename, int width, int heigh } openexr_header_compression(&header, compress); - BKE_stamp_info_callback(&header, stamp, openexr_header_metadata_callback); + BKE_stamp_info_callback(&header, const_cast(stamp), openexr_header_metadata_callback, false); /* header.lineOrder() = DECREASING_Y; this crashes in windows for file read! */ imb_exr_type_by_channels(header.channels(), *data->multiView, &is_singlelayer, &is_multilayer, &is_multiview); -- cgit v1.2.3