Files
test2/source/blender/blenkernel/intern
Nathan Vegdahl 49eab72141 Fix #107030: return accurate action frame ranges from the Python API
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
2023-09-26 18:18:56 +02:00
..
2023-09-25 17:53:11 -04:00
2023-09-25 17:53:11 -04:00
2023-09-25 17:53:11 -04:00
2023-09-25 17:53:11 -04:00
2023-07-04 17:03:02 +02:00
2023-07-28 09:38:07 +10:00
2023-08-28 15:01:05 +02:00
2023-09-22 03:18:17 +02:00
2023-09-25 17:53:11 -04:00
2023-09-25 17:53:11 -04:00
2023-09-25 17:53:11 -04:00
2023-09-25 17:53:11 -04:00
2023-09-25 15:25:43 +10:00
2023-08-28 15:01:05 +02:00
2023-08-21 10:05:45 +10:00
2023-08-28 15:01:05 +02:00
2023-07-22 11:46:41 +10:00