b7cd88d502e167b5f393aa954ef1345db64155ba
The VSE timeline strip thumbnail code seems to have at least two issues: Sometimes the thumbnail would go 1px outside of the right side of the strip itself. This seems to be caused by floating point inaccuracy where current thumbnail position is tracked in "fractional timeline frames" instead of some integers like pixels. The last, often clipped, thumbnail would thus spill over outside of the strip. Fixed this by making sure the last pixel column of the strip is not included into thumbnail drawing (pointless to draw there since it is always covered by strip border). Another problem was that the first thumbnail of the strip was often incorrectly clipped and the last pixel from it was removed, and so it was leaving a pixel gap between first and other thumbnails. This was under "Set the clipping bound to show the left handle moving" comment, where due to inclusive range check it was always causing the "clipped" part to be set to true for the first thumb. Also while trying to untangle all of this, moved variables closer to their usage. Some of them were only used inside the thumb loop but were declared in whole function (probably coming from when it was C code). Pull Request: https://projects.blender.org/blender/blender/pulls/123119
…
Blender
Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline-modeling, rigging, animation, simulation, rendering, compositing, motion tracking and video editing.
Project Pages
Development
License
Blender as a whole is licensed under the GNU General Public License, Version 3. Individual files may have a different, but compatible license.
See blender.org/about/license for details.
Description
Languages
C++
78%
Python
14.9%
C
2.9%
GLSL
1.9%
CMake
1.2%
Other
0.9%
