49eab72141ee7e2df8d276156566f2cf9b660316
This changes the `action.frame_range` Python API to return an accurate frame range for actions. Specifically, it was previously special-cased to return a range with length 1 whenever the length was actually 0. This led to a bizarre situation where a real frame range of `[0.0, 0.2]` would return that range as-is, but a real frame range of `[0.0, 0.0]` would instead return a range of `[0.0, 1.0]`. The new behavior simply always returns the real frame range. The reason for the previous behavior was obscure: the relevant code was also used internally in Blender's NLA system, and returning a zero-length range could result in NLA strips getting infinite scale. The code is now separated out appropriately so that the NLA system still gets the non-zero-length range, while the Python API for actions returns the real range. Pull Request: https://projects.blender.org/blender/blender/pulls/112709
…
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%
