Open Andrej730 opened 2 months ago
Yep, known limitation of #232 :
- Added
__getitem__()
,__setitem__()
and__delitem__()
toBMVert
,BMEdge
,BMLoop
andBMFace
.**Presently these methods get/set
Any
—to fix thisBMLayerItem
needs to be made generic (trivial), but that generic type needs to come fromBMLayerCollection
which also needs to be made generic, which involves modding all of its methods and uses (non-trivial), and I don't think it's currently possible to bind that generic type toBMLayerItem
(but it might be after #161's work on PEP 695 is implemented?).
Created the PR to support this feature. https://projects.blender.org/blender/blender/pulls/125851
After this PR is merged, I will make some classes generic.
See example below: