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:
authorAntony Riakiotakis <kalast@gmail.com>2015-05-04 13:52:58 +0300
committerAntony Riakiotakis <kalast@gmail.com>2015-05-04 13:53:16 +0300
commit93055b1c2293ca0e4db35641193b778f48d7aff5 (patch)
tree6d0f3b5b10def0e5f619c6925f11abc501c3d5cc /source/blender/imbuf/intern/allocimbuf.c
parent046388830ac854b4ff4a6bdf6e8107c550884992 (diff)
Fix metadata display in sequencer lost after doing a preprocess
transform. IMB_makeSingleUser makes a copy and destroys metadata. I am not sure if this is the safest way to make a single user ImBuf (setting the refcount to 0 is simpler and there's less, but no zero, risk of dangling pointers) but I will leave this as is for now in case there is an actual need for a copy here. The alternative approach should be tested at some point.
Diffstat (limited to 'source/blender/imbuf/intern/allocimbuf.c')
-rw-r--r--source/blender/imbuf/intern/allocimbuf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/imbuf/intern/allocimbuf.c b/source/blender/imbuf/intern/allocimbuf.c
index 18c3aeb8942..79f869968d3 100644
--- a/source/blender/imbuf/intern/allocimbuf.c
+++ b/source/blender/imbuf/intern/allocimbuf.c
@@ -210,6 +210,8 @@ ImBuf *IMB_makeSingleUser(ImBuf *ibuf)
rval = IMB_dupImBuf(ibuf);
+ IMB_metadata_copy(rval, ibuf);
+
IMB_freeImBuf(ibuf);
return rval;