Fixes the Original Dimensions showing Proxy Dimensions for Movie strip by loading dimensions into strip->stripdata->orig_width and orig_height when the file is added and not every time a new frame is loaded
Details
Diff Detail
- Repository
- rB Blender
Event Timeline
@Eitan Traurig (EitanSomething)
TODO load the original file dimensions for image files. @Richard Antalik (ISS) what would be the best way to do this?
It could be same as with movie - assign on first load and when path is changed(via operator, API or any legitimate way).
Not sure now, if there isn't different resolution for every frame in image strips, and if there is some function to get resolution without rendering image itself.
We should be careful if we want to rely on this value (for example to resolve T51828).
Oops, found issue here:
When you add image sequence, this will cause source resolution to be None when you are anywhere in strip.
it will work well only for first image. so this would be best to either initialize all images to same value, or change UI to show value of first image only.
Sure, here is example file:
Add image sequence like it is in this file and go to middle of strip. Source resolution will say "None". All frames are black but this is sequence of multiple images. probably not best example, let me know if you need better one.
One thing I would add is, that it would be probably best if this size could be updated during preview for case it doesn't match. This could fix old files that would be otherwise stuck in incorrect state. Not best solution, but probably only good solution right now.
I think you are going to have to fix the bug because I am still unable to reproduce it.
- Update image size when rendering non-proxy image, set image size for all images in sequence