Attributes: Expose "is required" read-only property to Python #111468

Merged
Hans Goudey merged 2 commits from HooglyBoogly/blender:attribute-is-required into main 2023-09-15 04:56:35 +02:00

2 Commits

Author SHA1 Message Date
249a37448d Update property description to mention renaming and change wording 2023-09-04 22:35:55 +02:00
9202abdf31 Attributes: Expose "is required" read-only property to Python
Some checks failed
buildbot/vexp-code-patch-coordinator Build done.
This allows detecting if deleting the attribute will be possible
without actually trying to delete it, which can give warning
messages in the terminal.

As an example:
```
>>> [(item.name, item.is_required) for item in mesh.attributes]
[('Attribute', False),
 ('position', True),
 ('.edge_verts', True),
 ('sharp_face', False),
 ('.corner_vert', True),
 ('.corner_edge', True)]
```
2023-08-24 08:22:26 -04:00