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