Jacques Lucke
f442c86197
Depsgraph: improve type safety when getting evaluated or original ID
...
The goal here is to avoid having to cast to and from `ID` when getting the
evaluated or original ID using the depsgraph API, which is often verbose and not
type safe. To solve this, there are now `DEG_get_original` and
`DEG_get_evaluated` methods which are templated on the type and use a new
`is_ID_v` static type check to make sure it's only used with valid types.
This allows removing quite some verbosity on all the call sites. I also removed
`DEG_get_original_object`, because that does not have to be a special case
anymore.
Pull Request: https://projects.blender.org/blender/blender/pulls/137629
2025-04-17 13:09:20 +02:00
..
2024-09-25 18:04:27 +02:00
2025-01-07 12:39:13 +01:00
2025-04-16 09:55:00 +02:00
2025-01-07 12:39:13 +01:00
2024-09-25 18:04:27 +02:00
2025-01-07 12:39:13 +01:00
2025-02-13 17:56:42 +11:00
2025-01-07 12:39:13 +01:00
2025-04-01 12:06:03 +11:00
2025-01-07 12:39:13 +01:00
2024-09-25 18:04:27 +02:00
2025-01-07 12:39:13 +01:00
2024-09-25 18:04:27 +02:00
2025-01-07 12:39:13 +01:00
2024-09-25 18:04:27 +02:00
2025-01-07 12:39:13 +01:00
2024-09-25 18:04:27 +02:00
2025-01-07 12:39:13 +01:00
2024-09-25 18:04:27 +02:00
2025-01-07 12:39:13 +01:00
2025-04-01 12:06:03 +11:00
2025-01-07 12:39:13 +01:00
2025-04-08 14:57:14 +10:00
2025-01-07 12:39:13 +01:00
2024-09-25 18:04:27 +02:00
2025-01-07 12:39:13 +01:00
2025-04-01 12:06:03 +11:00
2025-01-07 12:39:13 +01:00
2025-01-07 12:39:13 +01:00
2025-02-13 18:58:08 +01:00
2025-04-02 03:02:04 +00:00
2025-01-07 12:39:13 +01:00
2025-02-13 17:56:42 +11:00
2025-01-31 17:03:18 +01:00
2025-04-08 12:29:02 +02:00
2025-04-01 12:35:01 +11:00
2025-04-04 12:48:04 +11:00
2024-09-25 18:04:27 +02:00
2025-04-01 12:06:03 +11:00
2025-04-02 03:02:01 +00:00
2025-02-13 17:56:42 +11:00
2024-09-25 18:04:27 +02:00
2025-01-07 12:39:13 +01:00
2025-04-01 12:06:03 +11:00
2025-04-01 12:06:03 +11:00
2025-01-07 12:39:13 +01:00
2025-04-01 12:06:03 +11:00
2025-01-07 12:39:13 +01:00
2025-04-04 12:48:04 +11:00
2025-01-07 12:39:13 +01:00
2025-04-01 12:33:56 +11:00
2025-01-07 12:39:13 +01:00
2025-01-07 12:39:13 +01:00
2025-01-07 12:39:13 +01:00
2025-04-01 12:06:03 +11:00
2025-01-07 12:39:13 +01:00
2025-01-24 16:45:32 +01:00
2025-01-07 12:39:13 +01:00
2025-01-31 17:03:18 +01:00
2025-04-09 23:07:03 +02:00
2025-01-07 12:39:13 +01:00
2025-04-01 12:06:03 +11:00
2025-01-07 12:39:13 +01:00
2025-04-01 12:06:03 +11:00
2025-01-07 12:39:13 +01:00
2025-01-07 12:39:13 +01:00
2025-01-07 12:39:13 +01:00
2025-04-01 12:06:03 +11:00
2025-01-07 12:39:13 +01:00
2025-04-01 12:06:03 +11:00
2025-01-20 17:39:25 +01:00
2025-01-07 12:39:13 +01:00
2025-01-07 12:39:13 +01:00
2025-04-01 12:06:03 +11:00
2025-01-07 12:39:13 +01:00
2025-01-20 17:39:25 +01:00
2025-01-07 11:27:20 +11:00
2025-04-01 12:06:03 +11:00
2025-01-07 12:39:13 +01:00
2025-04-17 13:09:20 +02:00
2025-01-07 12:39:13 +01:00
2025-01-31 17:03:18 +01:00
2024-09-25 18:04:27 +02:00
2025-04-01 12:06:03 +11:00
2025-01-07 12:39:13 +01:00
2025-04-01 12:06:03 +11:00
2025-01-07 12:39:13 +01:00
2025-04-15 15:22:53 +10:00
2025-01-07 12:39:13 +01:00
2025-04-16 09:55:00 +02:00