Fix: segfault when indexing into some collections with strings. #107086

Merged
Nathan Vegdahl merged 1 commits from nathanvegdahl/blender:str_collection_indexing_bug into main 2023-04-18 17:15:34 +02:00

1 Commits

Author SHA1 Message Date
Nathan Vegdahl 3adc3a1370 Fix: segfault when indexing into some collections with strings.
This happens when the collection's item type doesn't have a
'nameproperty' to index with.  For debug builds we error out with an
assert, since in general this shouldn't happen.  For release builds
Python will report item not found.
2023-04-18 16:38:54 +02:00