Joseph Eagar
fbf091750c
Sculpt: cleanup sculpt attribute API
...
* `BKE_sculpt_vertex_attr_get` (and it's alias `SCULPT_vertex_attr_get`)
is now `blender::bke::paint::vertex_attr_ptr`. Same for the face
versions of those functions. The SCULPT_XXX aliases are removed.
* Removed code duplication; `[vertex/face]_attr_ptr` now just calls
a generic template (`elem_attr_ptr`).
* Added `[vertex/face]_attr_get` and `[vertex/face]_attr_set` functions
to get/set attribute data without pointer wrangling.
* Given the unwieldly length of `blender::bke::paint::` it's recommended
to do a `using blender::bke::paint;` at the top of sculpt files.
Example: `float w = vertex_attr_get<float>(vertex,
ss->attrs.automasking_factor);`
2023-04-13 12:12:56 -07:00
..
2023-04-13 12:49:16 -04:00
2023-02-12 14:56:05 +11:00
2023-02-12 14:56:05 +11:00
2023-03-28 13:57:51 +02:00
2023-03-30 12:25:42 +02:00
2023-03-29 16:50:54 +02:00
2023-03-30 10:51:59 +02:00
2023-04-13 14:57:57 +02:00
2022-11-26 10:12:58 -06:00
2023-04-11 15:20:52 +02:00
2023-03-02 17:22:42 +01:00
2023-03-17 16:45:42 +11:00
2023-01-18 18:41:13 +11:00
2023-04-12 18:33:53 -07:00
2023-03-29 14:37:34 +11:00
2023-03-30 10:51:59 +02:00
2023-03-09 12:05:30 +11:00
2022-12-20 19:16:33 -03:00
2023-03-30 10:51:59 +02:00
2023-03-30 10:51:59 +02:00
2023-03-21 18:38:04 +01:00
2023-03-30 10:51:59 +02:00
2023-03-30 10:51:59 +02:00
2022-12-29 20:46:05 +01:00
2023-03-16 15:40:31 +01:00
2023-03-30 10:51:59 +02:00
2023-02-14 16:33:38 +01:00
2023-03-30 10:51:59 +02:00
2023-03-30 10:51:59 +02:00
2023-01-16 12:06:36 -06:00
2023-01-06 11:41:36 -05:00
2023-03-30 10:51:59 +02:00
2023-01-23 14:43:04 -06:00
2023-01-18 18:41:13 +11:00
2023-03-29 16:50:54 +02:00
2023-04-13 14:57:57 +02:00
2023-03-30 10:51:59 +02:00
2023-04-04 20:39:28 +02:00
2023-04-04 14:52:02 -04:00
2023-01-18 18:41:13 +11:00
2023-01-10 01:01:43 -05:00
2023-03-06 16:01:47 +01:00
2023-03-17 16:45:42 +11:00
2023-03-30 10:51:59 +02:00
2023-03-30 10:51:59 +02:00
2023-03-31 13:00:51 -04:00
2023-02-06 21:25:45 +01:00
2023-01-18 18:41:13 +11:00
2023-03-28 13:57:51 +02:00
2023-04-05 14:39:51 +10:00
2023-03-13 10:42:51 +01:00
2023-03-13 11:57:03 +01:00
2023-03-29 14:37:34 +11:00
2023-03-13 10:42:51 +01:00
2023-03-13 10:42:51 +01:00
2023-03-30 10:51:59 +02:00
2023-03-30 18:51:33 -04:00
2023-01-20 17:36:47 -06:00
2023-03-08 12:35:58 +01:00
2023-03-29 16:50:54 +02:00
2023-03-29 16:50:54 +02:00
2023-03-27 12:08:14 +11:00
2023-02-06 21:25:45 +01:00
2023-03-30 10:51:59 +02:00
2023-01-13 17:22:07 -06:00
2023-03-02 23:14:33 +01:00
2023-02-06 17:19:02 +01:00
2023-03-30 10:51:59 +02:00
2023-03-30 10:51:59 +02:00
2023-02-06 19:29:21 +01:00
2023-03-30 10:51:59 +02:00
2023-03-30 10:51:59 +02:00
2023-02-06 19:29:21 +01:00
2023-03-14 12:53:37 +11:00
2023-03-30 10:51:59 +02:00
2023-03-30 10:51:59 +02:00
2023-03-03 10:09:20 +11:00
2023-03-27 11:48:10 -04:00
2023-04-04 20:39:28 +02:00
2023-04-04 20:39:28 +02:00
2023-03-30 10:51:59 +02:00
2023-04-04 20:39:28 +02:00
2023-03-30 10:51:59 +02:00
2023-03-20 15:55:13 +01:00
2023-03-20 15:55:13 +01:00
2023-04-04 20:39:28 +02:00
2023-03-30 10:51:59 +02:00
2023-01-18 18:41:13 +11:00
2023-04-12 11:49:43 -04:00
2023-04-04 20:39:28 +02:00
2023-02-06 15:40:15 +01:00
2023-03-30 10:51:59 +02:00
2023-04-04 20:39:28 +02:00
2023-03-02 15:02:30 +01:00
2023-04-03 18:23:30 +02:00
2023-04-05 14:39:51 +10:00
2023-02-12 14:56:05 +11:00
2023-04-13 12:12:56 -07:00
2023-04-04 20:39:28 +02:00
2023-04-05 14:39:51 +10:00
2023-04-08 13:29:37 +02:00
2023-04-12 11:24:10 +10:00
2023-04-13 12:49:16 -04:00
2023-01-02 16:39:51 +01:00
2023-03-30 10:51:59 +02:00
2023-04-05 15:30:32 +02:00
2023-03-30 10:51:59 +02:00
2023-04-04 20:39:28 +02:00
2023-03-30 10:51:59 +02:00
2023-03-30 10:51:59 +02:00
2023-04-04 20:39:28 +02:00
2023-03-30 10:51:59 +02:00
2023-03-30 10:51:59 +02:00
2023-03-30 10:51:59 +02:00
2023-03-30 10:51:59 +02:00
2023-03-30 10:51:59 +02:00
2023-03-30 10:51:59 +02:00
2023-03-30 10:51:59 +02:00
2023-03-01 14:13:05 +01:00
2023-03-30 10:51:59 +02:00
2023-03-24 17:09:39 +11:00
2023-03-30 10:51:59 +02:00
2023-01-07 17:32:28 +01:00
2023-01-23 00:33:55 +01:00
2023-02-28 17:08:23 +11:00
2023-04-04 20:39:28 +02:00
2023-03-19 11:21:08 +01:00
2023-04-13 13:14:11 +10:00
2023-03-30 10:51:59 +02:00
2023-03-30 10:51:59 +02:00