adding __contains__ to python rna props.
authorCampbell Barton <ideasman42@gmail.com>
Sat, 13 Jun 2009 08:04:43 +0000 (08:04 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 13 Jun 2009 08:04:43 +0000 (08:04 +0000)
commite10e1ac04e63ed04a5712e515ed28eb92a78fd62
tree9b78c6ecdc9f0844143933c97506c8b1517d385c
parentd35d04a78961946145be256ed1ff45342f7633b8
adding __contains__ to python rna props.
example usage.
 if "Scene" in bpy.data.scenes: print(True)

Only works for strings with collection property types.
source/blender/python/intern/bpy_rna.c