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
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-02-25 21:51:36 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-02-25 21:54:48 +0300
commit7e40a231a7c55a6745511221a74137317bd0aaec (patch)
tree817c4321d92e2371d7d412bddc1c93ba66646e2b /source/blender/blenkernel/intern/image.c
parent9ad379fe559200e7a17a3c9571ff0785a095dfac (diff)
Fix T61946: Cycles border render missing samples and crypto metadata.
Diffstat (limited to 'source/blender/blenkernel/intern/image.c')
-rw-r--r--source/blender/blenkernel/intern/image.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/image.c b/source/blender/blenkernel/intern/image.c
index ff6719fbb49..bf8edf5c71f 100644
--- a/source/blender/blenkernel/intern/image.c
+++ b/source/blender/blenkernel/intern/image.c
@@ -2194,7 +2194,23 @@ void BKE_render_result_stamp_data(RenderResult *rr, const char *key, const char
BLI_addtail(&stamp_data->custom_fields, field);
}
-void BKE_stamp_data_free(struct StampData *stamp_data)
+StampData *BKE_stamp_data_copy(const StampData *stamp_data)
+{
+ if (stamp_data == NULL) {
+ return NULL;
+ }
+
+ StampData *stamp_datan = MEM_dupallocN(stamp_data);
+ BLI_duplicatelist(&stamp_datan->custom_fields, &stamp_data->custom_fields);
+
+ LISTBASE_FOREACH(StampDataCustomField *, custom_fieldn, &stamp_datan->custom_fields) {
+ custom_fieldn->value = MEM_dupallocN(custom_fieldn->value);
+ }
+
+ return stamp_datan;
+}
+
+void BKE_stamp_data_free(StampData *stamp_data)
{
if (stamp_data == NULL) {
return;