Closed Road-hog123 closed 5 months ago
@Road-hog123
The original patch is introduced by #241 . Which is the correct one?
This PR improves on #241, fixing issues introduced by my assumption that key
would be typed the same for all three methods, and that if dir()
reveals __delitem__
it would actually be implemented. Now that I've actually inspected the source code, I can see that my assumptions were incorrect.
@Road-hog123 Thank you!
bpy_prop_collection
does not currently support assignment to slices or keys (only int indices); and while it does have a__delitem__
, it just raises aTypeError
"del bpy_prop_collection[key]: not supported".bpy_prop_array
does not support deleting slices.