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-05-31 16:19:06 +02:00
2023-09-22 03:18:17 +02:00
2023-09-26 18:18:56 +02:00
2023-09-26 18:18:56 +02:00
2023-08-16 00:20:26 +10:00
2023-09-22 03:18:17 +02:00
2023-09-22 12:21:18 +10:00
2023-09-26 18:18:56 +02:00
2023-08-28 15:01:05 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 21:21:55 +10:00
2023-09-22 03:18:17 +02:00
2023-09-06 00:48:50 +02:00
2023-08-29 14:31:18 +02:00
2023-09-01 21:37:11 +02:00
2023-09-25 14:37:22 +02:00
2023-09-26 14:17:21 +02:00
2023-08-16 00:20:26 +10:00
2023-09-01 21:37:11 +02:00
2023-09-04 18:02:16 +02:00
2023-09-22 12:21:18 +10:00
2023-09-22 12:21:18 +10:00
2023-08-16 00:20:26 +10:00
2023-09-26 15:36:12 +02:00
2023-08-16 00:20:26 +10:00
2023-09-03 16:14:11 +02:00
2023-09-03 13:37:50 +02:00
2023-09-03 13:37:50 +02:00
2023-09-03 13:37:50 +02:00
2023-09-03 13:37:50 +02:00
2023-09-22 03:18:17 +02:00
2023-09-22 03:18:17 +02:00
2023-08-16 00:20:26 +10:00
2023-09-25 17:53:11 -04:00
2023-08-28 15:01:05 +02:00
2023-09-25 17:53:11 -04:00
2023-09-08 13:57:53 +10:00
2023-08-16 00:20:26 +10:00
2023-09-22 03:18:17 +02:00
2023-09-25 12:05:50 +10:00
2023-09-07 08:36:43 -04:00
2023-09-22 03:18:17 +02:00
2023-09-06 00:48:50 +02:00
2023-09-25 17:53:11 -04:00
2023-08-16 00:20:26 +10:00
2023-09-25 17:06:04 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-09-22 03:18:17 +02:00
2023-09-22 03:18:17 +02:00
2023-09-22 03:18:17 +02:00
2023-08-10 14:51:40 +03:00
2023-09-25 17:06:04 +10:00
2023-08-16 14:48:53 +03:00
2023-09-25 17:06:04 +10:00
2023-09-25 17:53:11 -04:00
2023-08-16 00:20:26 +10:00
2023-09-22 03:18:17 +02:00
2023-09-01 21:37:11 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-09-22 03:18:17 +02:00
2023-08-19 23:52:47 +10:00
2023-08-10 14:51:40 +03:00
2023-09-01 21:37:11 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-09-14 13:25:24 +10:00
2023-09-25 17:06:04 +10:00
2023-08-28 15:01:05 +02:00
2023-08-16 00:20:26 +10:00
2023-09-12 16:02:04 +02:00
2023-08-16 00:20:26 +10:00
2023-09-22 03:18:17 +02:00
2023-08-16 00:20:26 +10:00
2023-09-14 13:25:24 +10:00
2023-08-16 00:20:26 +10:00
2023-09-22 03:18:17 +02:00
2023-09-26 15:36:12 +02:00
2023-09-22 03:18:17 +02:00
2023-09-22 03:18:17 +02:00
2023-09-22 03:18:17 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-09-22 03:18:17 +02:00
2023-09-22 03:18:17 +02:00
2023-08-16 00:20:26 +10:00
2023-09-22 03:18:17 +02:00
2023-08-16 00:20:26 +10:00
2023-09-06 22:03:16 +10:00
2023-09-22 03:18:17 +02:00
2023-08-16 00:20:26 +10:00
2023-09-04 16:16:26 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-09-25 12:05:50 +10:00
2023-09-22 03:18:17 +02:00
2023-09-25 12:05:50 +10:00
2023-09-25 17:53:11 -04:00
2023-08-16 00:20:26 +10:00
2023-09-25 12:05:50 +10:00
2023-09-25 12:11:18 +02:00
2023-09-25 12:11:18 +02:00
2023-08-16 00:20:26 +10:00
2023-09-05 16:05:12 +02:00
2023-08-16 00:20:26 +10:00
2023-09-01 21:37:11 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-09-17 12:16:40 +10:00
2023-08-16 00:20:26 +10:00
2023-07-04 17:03:02 +02:00
2023-09-14 13:25:24 +10:00
2023-09-25 12:46:17 +02:00
2023-08-16 00:20:26 +10:00
2023-09-01 21:37:11 +02:00
2023-07-28 09:38:07 +10:00
2023-08-16 00:20:26 +10:00
2023-09-22 03:18:17 +02:00
2023-08-16 00:20:26 +10:00
2023-09-25 17:06:04 +10:00
2023-08-16 00:20:26 +10:00
2023-09-25 17:06:04 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-10 14:51:40 +03:00
2023-09-22 03:18:17 +02:00
2023-09-06 00:48:50 +02:00
2023-08-16 00:20:26 +10:00
2023-09-22 03:18:17 +02:00
2023-09-22 03:18:17 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-09-22 03:18:17 +02:00
2023-08-16 00:20:26 +10:00
2023-09-22 03:18:17 +02:00
2023-09-22 03:18:17 +02:00
2023-09-14 13:25:24 +10:00
2023-08-16 00:20:26 +10:00
2023-09-22 03:18:17 +02:00
2023-09-06 17:14:46 +02:00
2023-09-25 18:00:28 +02:00
2023-09-22 03:18:17 +02:00
2023-08-28 15:01:05 +02:00
2023-09-04 16:16:26 +02:00
2023-08-16 00:20:26 +10:00
2023-09-01 21:37:11 +02:00
2023-09-14 11:46:32 +10:00
2023-09-25 17:06:04 +10:00
2023-09-25 17:06:04 +10:00
2023-09-25 17:06:04 +10:00
2023-09-22 03:18:17 +02:00
2023-09-22 03:18:17 +02:00
2023-09-22 03:18:17 +02:00
2023-09-01 21:37:11 +02:00
2023-08-16 00:20:26 +10:00
2023-09-22 03:18:17 +02:00
2023-08-16 00:20:26 +10:00
2023-08-29 17:00:33 +02:00
2023-08-30 23:41:59 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-09-01 21:37:11 +02:00
2023-09-08 16:18:38 +02:00
2023-08-30 23:41:59 +02:00
2023-08-30 23:41:59 +02:00
2023-08-30 23:41:59 +02:00
2023-09-06 16:54:46 +02:00
2023-09-01 21:37:11 +02:00
2023-09-05 11:32:29 +02:00
2023-08-16 00:20:26 +10:00
2023-09-01 21:37:11 +02:00
2023-09-07 08:36:43 -04:00
2023-09-22 03:18:17 +02:00
2023-09-22 03:18:17 +02:00
2023-09-22 03:18:17 +02:00
2023-09-25 17:53:11 -04:00
2023-09-22 03:18:17 +02:00
2023-08-16 00:20:26 +10:00
2023-09-22 03:18:17 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-09-22 03:18:17 +02:00
2023-09-22 03:18:17 +02:00
2023-08-16 00:20:26 +10:00
2023-09-22 03:18:17 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-09-22 03:18:17 +02:00
2023-08-30 23:41:59 +02:00
2023-08-16 00:20:26 +10:00
2023-09-22 03:18:17 +02:00
2023-09-26 18:18:56 +02:00
2023-09-26 18:18:56 +02:00
2023-09-20 18:03:48 +02:00
2023-09-14 14:13:07 +02:00
2023-08-16 00:20:26 +10:00
2023-09-25 13:39:44 +02:00
2023-09-22 11:22:30 -04:00
2023-09-22 03:18:17 +02:00
2023-09-20 14:40:56 +02:00
2023-09-26 16:38:50 +02:00
2023-08-16 00:20:26 +10:00
2023-09-22 03:18:17 +02:00
2023-09-22 03:18:17 +02:00
2023-09-26 16:38:50 +02:00
2023-08-16 00:20:26 +10:00
2023-08-19 23:52:47 +10:00
2023-08-10 14:51:40 +03:00
2023-08-16 00:20:26 +10:00
2023-09-25 17:06:04 +10:00
2023-09-01 21:37:11 +02:00
2023-08-16 00:20:26 +10:00
2023-09-22 03:18:17 +02:00
2023-08-16 00:20:26 +10:00
2023-09-25 17:06:04 +10:00
2023-09-22 03:18:17 +02:00
2023-09-22 03:18:17 +02:00
2023-09-25 17:06:04 +10:00
2023-08-16 00:20:26 +10:00
2023-08-31 19:40:39 +02:00
2023-09-01 21:37:11 +02:00
2023-08-16 00:20:26 +10:00
2023-09-01 21:37:11 +02:00
2023-08-29 11:47:29 -04:00
2023-08-29 17:00:33 +02:00
2023-09-26 14:21:07 +02:00
2023-09-25 17:06:04 +10:00
2023-09-22 03:18:17 +02:00
2023-09-22 12:21:18 +10:00
2023-08-16 00:20:26 +10:00
2023-09-06 18:00:20 +02:00
2023-08-04 08:51:13 +10: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-22 03:18:17 +02:00
2023-09-25 15:25:43 +10:00
2023-09-25 17:06:04 +10:00
2023-08-28 15:01:05 +02:00
2023-08-21 10:05:45 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-31 19:40:39 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-31 14:22:22 -04:00
2023-09-21 12:55:51 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-09-25 17:06:04 +10:00
2023-08-16 00:20:26 +10:00
2023-09-25 17:06:04 +10:00
2023-09-04 18:02:16 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-28 15:01:05 +02:00
2023-09-25 17:06:04 +10:00
2023-08-28 15:01:05 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-09-22 03:18:17 +02:00
2023-09-22 03:18:17 +02:00
2023-09-22 03:18:17 +02:00
2023-07-22 11:46:41 +10:00
2023-08-16 00:20:26 +10:00