fix for py/rna mesh.materials[:] where empty materials exist, would raise a runtime...
authorCampbell Barton <ideasman42@gmail.com>
Wed, 5 Jan 2011 14:49:08 +0000 (14:49 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 5 Jan 2011 14:49:08 +0000 (14:49 +0000)
commit978bc0d8ace0ea10339afb25b50ef396e9cc1c8d
tree439e1df1c4af7367eda88f326416cd622043e703
parent26024445ac8a4af76d6399fbb896772d26a65ddf
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.
source/blender/makesrna/intern/makesrna.c
source/blender/makesrna/intern/rna_access.c
source/blender/makesrna/intern/rna_internal.h
source/blender/makesrna/intern/rna_internal_types.h
source/blender/makesrna/intern/rna_pose.c
source/blender/makesrna/intern/rna_rna.c
source/blender/makesrna/intern/rna_scene.c
source/blender/python/intern/bpy_rna.c