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