diff options
author | Sergey Sharybin <sergey@blender.org> | 2021-05-03 17:27:47 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey@blender.org> | 2021-05-03 17:30:19 +0300 |
commit | 0ac6852a4232bed72944e0b74013a72359320a17 (patch) | |
tree | e52710427b90e261c2b57d705f26d7ad05299829 /source/blender/blenkernel/intern | |
parent | 2f615ad3a93c3e4b119f914c5afe9ca294c0f228 (diff) |
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.
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/movieclip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/movieclip.c b/source/blender/blenkernel/intern/movieclip.c index 9c2cd03dbc2..0f2f56f4f2b 100644 --- a/source/blender/blenkernel/intern/movieclip.c +++ b/source/blender/blenkernel/intern/movieclip.c @@ -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) { |