Movieclip: Use first clip frame for size detection

Using scene frame 1 is not reliable in cases when there is a
frame offset is involved. Using frame 1 seems more reliable,
although might still fail under certain circumstances.

More reliable fix would require a deeper change in the data
structure and the logic about frame loading and size detection.
This commit is contained in:
Sergey Sharybin 2021-05-03 16:27:47 +02:00
parent 2f615ad3a9
commit 0ac6852a42
1 changed files with 1 additions and 1 deletions

View File

@ -950,7 +950,7 @@ static void movieclip_load_get_size(MovieClip *clip)
int width, height;
MovieClipUser user = {0};
user.framenr = 1;
user.framenr = BKE_movieclip_remap_clip_to_scene_frame(clip, 1);
BKE_movieclip_get_size(clip, &user, &width, &height);
if (width && height) {