Repository navigation
Commit f293573
fix(rules): bulk-data and bmesh rules name only attributes that exist and are writable
Verified on .scratch/blender-4.5.11-windows-x64 and blender-5.2.1 (same on both):
MeshLoop.normal is read-only; MeshEdge has no `crease` and no `use_sharp`
(the property is use_edge_sharp); Mesh.vertex_layers_int does not exist;
normals_split_custom_set exists; a crease_edge FLOAT and sharp_edge BOOLEAN
edge attribute take foreach_set("value", ...); mesh.attributes["missing"]
raises KeyError.
- use-foreach-set-for-bulk-data: the flagged-pattern list no longer offers
`loop.normal = ...` (unwritable); "where else it works" now says read loop
normals with foreach_get and write custom normals with
normals_split_custom_set, lists use_edge_sharp, and moves crease to the
crease_edge attribute; adds generic mesh.attributes[name].data.
- always-free-bmesh: the example exception is mesh.attributes["missing"]
(KeyError) instead of the removed vertex_layers_int (whose .get() would not
have raised anyway).
Closes #330
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 2d4e769 commit f293573
2 files changed
Lines changed: 13 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
| 76 | + | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
103 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
104 | 106 | | |
105 | | - | |
106 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
107 | 113 | | |
108 | 114 | | |
109 | 115 | | |
| |||
0 commit comments