7d9499bdc4289cb80098116c70e08721b074dd28
We can apply the `V2D_KEEPZOOM` and `V2D_KEEPOFS_Y` flags to the main VSE region to make sure this happens. If `V2D_KEEPZOOM` is set, we should update the view2d's `oldwinx` and `oldwiny` in `ui_view2d_curRect_validate_resize` just like the `V2D_KEEPASPECT` case. Divide-by-zero is a real possibility here, since initialization status of `oldwinx/y` cannot be determined from the `resize` boolean alone (e.g. loading regions from disk on startup yields a `true` `resize` parameter, so any old regions that have `KEEPZOOM` added through versioning will get this error since their `oldwinx/y` is uninitialized). Avoid by initializing `oldwinx/y` if it is zero in `ui_view2d_curRect_validate_resize`. Addresses #136508. Pull Request: https://projects.blender.org/blender/blender/pulls/137802
…
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%
