diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-01-05 17:49:08 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-01-05 17:49:08 +0300 |
commit | 978bc0d8ace0ea10339afb25b50ef396e9cc1c8d (patch) | |
tree | 439e1df1c4af7367eda88f326416cd622043e703 /source/blender/makesrna/intern/rna_internal.h | |
parent | 26024445ac8a4af76d6399fbb896772d26a65ddf (diff) |
fix for py/rna mesh.materials[:] where empty materials exist, would raise a runtime exception.
problem was there was no way to tell the difference between getting an empty item from a collection or the item not being found.
Diffstat (limited to 'source/blender/makesrna/intern/rna_internal.h')
-rw-r--r-- | source/blender/makesrna/intern/rna_internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_internal.h b/source/blender/makesrna/intern/rna_internal.h index 90c5a555221..39f12c56e1c 100644 --- a/source/blender/makesrna/intern/rna_internal.h +++ b/source/blender/makesrna/intern/rna_internal.h @@ -301,7 +301,7 @@ void rna_builtin_properties_begin(struct CollectionPropertyIterator *iter, struc void rna_builtin_properties_next(struct CollectionPropertyIterator *iter); PointerRNA rna_builtin_properties_get(struct CollectionPropertyIterator *iter); PointerRNA rna_builtin_type_get(struct PointerRNA *ptr); -PointerRNA rna_builtin_properties_lookup_string(PointerRNA *ptr, const char *key); +int rna_builtin_properties_lookup_string(PointerRNA *ptr, const char *key, PointerRNA *r_ptr); /* Iterators */ |