Merge branch 'master' into blender2.8
[blender.git] / source / blender / blenkernel / intern / sequencer.c
index 184016100c4cba2d732dc7ed0f3b716fba87cb8c..263c30cabca8c00d54139c7379290a85335dc99f 100644 (file)
@@ -86,6 +86,7 @@
 #include "IMB_imbuf.h"
 #include "IMB_imbuf_types.h"
 #include "IMB_colormanagement.h"
+#include "IMB_metadata.h"
 
 #include "BKE_context.h"
 #include "BKE_sound.h"
@@ -946,6 +947,8 @@ void BKE_sequence_reload_new_file(Scene *scene, Sequence *seq, const bool lock_r
                                return;
                        }
 
+                       IMB_anim_load_metadata(sanim->anim);
+
                        seq->len = IMB_anim_get_duration(sanim->anim, seq->strip->proxy ? seq->strip->proxy->tc : IMB_TC_RECORD_RUN);
 
                        seq->anim_preseek = IMB_anim_get_preseek(sanim->anim);
@@ -5392,6 +5395,8 @@ Sequence *BKE_sequencer_add_movie_strip(bContext *C, ListBase *seqbasep, SeqLoad
                }
        }
 
+       IMB_anim_load_metadata(anim_arr[0]);
+
        seq->anim_preseek = IMB_anim_get_preseek(anim_arr[0]);
        BLI_strncpy(seq->name + 2, "Movie", SEQ_NAME_MAXSTR - 2);
        BKE_sequence_base_unique_name_recursive(&scene->ed->seqbase, seq);