tornavis/scripts
Hans Goudey e5ec04d73c Mesh: Move vertex/edge crease to generic attributes
Store subdivision surface creases in two new named float attributes:
- `crease_vert`
- `crease_edge`
This is similar to 2a56403cb0.

The attributes are naming conventions, so their data type and domain
aren't enforced, and may be interpolated when necessary. Editing tools
and the subdivision surface modifier use the hard-coded name. It might
be best if these were edited as generic attributes in the future, but
in the meantime using generic attributes helps.

The attributes are visible in the list, which is how they're now meant
to be removed. They are now interchangeable with any tool that works
with the generic attribute system-- even tools like vertex paint can
affect creases now.

This is a breaking change. Forward compatibility isn't preserved for
versions before 3.6, and the `crease` property in RNA is removed in
favor of making a smaller API surface area with just the attribute API.
`Mesh.vertex_creases` and `Mesh.edge_creases` now just return the
matching attribute if possible, and are now implemented in Python.
New functions `*ensure` and `*remove` also replace the operators to
add and remove the layers for Python.

A few extrude node test files have to be updated because of different
(now generic) attribute interpolation behavior.

Pull Request: https://projects.blender.org/blender/blender/pulls/108089
2023-06-13 20:23:39 +02:00
..
freestyle Cleanup: autopep8 2023-03-01 22:12:18 +11:00
modules Mesh: Move vertex/edge crease to generic attributes 2023-06-13 20:23:39 +02:00
presets UI: Add filtering support to UI views 2023-06-12 12:31:11 +02:00
site
startup Mesh: Move vertex/edge crease to generic attributes 2023-06-13 20:23:39 +02:00
templates_osl
templates_py PyAPI: remove deprecated blf.size() dpi argument 2023-05-23 12:02:10 +10:00