1
1
This repository has been archived on 2023-10-09. You can view files and clone it, but cannot push or open issues or pull requests.
Files
blender-archive/source/blender/blenkernel
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-03-17 16:45:42 +11:00
2023-04-05 14:39:51 +10:00
2023-03-13 11:57:03 +01:00
2023-03-27 12:08:14 +11:00
2023-02-06 17:19:02 +01:00
2023-03-03 10:09:20 +11:00
2023-04-05 14:39:51 +10:00
2023-04-12 11:24:10 +10:00
2023-04-05 15:30:32 +02:00
2023-04-13 13:14:11 +10:00