Merge branch 'blender-v3.1-release'
This commit is contained in:
commit
b91ae8b14c
|
@ -739,15 +739,15 @@ static int sequencer_add_movie_strip_exec(bContext *C, wmOperator *op)
|
|||
return OPERATOR_CANCELLED;
|
||||
}
|
||||
|
||||
/* Free custom data. */
|
||||
sequencer_add_cancel(C, op);
|
||||
SEQ_collection_free(movie_strips);
|
||||
|
||||
seq_build_proxy(C, movie_strips);
|
||||
DEG_relations_tag_update(bmain);
|
||||
DEG_id_tag_update(&scene->id, ID_RECALC_SEQUENCER_STRIPS);
|
||||
WM_event_add_notifier(C, NC_SCENE | ND_SEQUENCER, scene);
|
||||
|
||||
/* Free custom data. */
|
||||
sequencer_add_cancel(C, op);
|
||||
SEQ_collection_free(movie_strips);
|
||||
|
||||
return OPERATOR_FINISHED;
|
||||
}
|
||||
|
||||
|
|
|
@ -247,8 +247,10 @@ struct anim_index *IMB_indexer_open(const char *name)
|
|||
|
||||
uint64_t IMB_indexer_get_seek_pos(struct anim_index *idx, int frame_index)
|
||||
{
|
||||
if (frame_index < 0) {
|
||||
frame_index = 0;
|
||||
/* This is hard coded, because our current timecode files return non zero seek position for index
|
||||
* 0. Only when seeking to 0 it is guaranteed, that first packet will be read. */
|
||||
if (frame_index <= 0) {
|
||||
return 0;
|
||||
}
|
||||
if (frame_index >= idx->num_entries) {
|
||||
frame_index = idx->num_entries - 1;
|
||||
|
|
Loading…
Reference in New Issue