Partial fix of T51989: Don't set image user offset for movie files
While this is handy for image sequences, it's totally meaningless for movie files.
This commit is contained in:
parent
440c91b1f6
commit
9a4cfc3e77
@ -1327,7 +1327,11 @@ static int image_open_exec(bContext *C, wmOperator *op)
|
||||
iuser->frames = frame_seq_len;
|
||||
iuser->sfra = 1;
|
||||
iuser->framenr = 1;
|
||||
iuser->offset = frame_ofs - 1;
|
||||
if (ima->source == IMA_SRC_MOVIE) {
|
||||
iuser->offset = 0;
|
||||
} else {
|
||||
iuser->offset = frame_ofs - 1;
|
||||
}
|
||||
iuser->fie_ima = 2;
|
||||
iuser->scene = scene;
|
||||
BKE_image_init_imageuser(ima, iuser);
|
||||
|
Loading…
Reference in New Issue
Block a user