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:
parent
2f615ad3a9
commit
0ac6852a42
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue