Blender Git Commit Log

Git Commits -> Revision e10e1ac

Revision e10e1ac by Campbell Barton (master)
June 13, 2009, 08:04 (GMT)
adding __contains__ to python rna props.
example usage.
if "Scene" in bpy.data.scenes: print(True)

Only works for strings with collection property types.

Commit Details:

Full Hash: e10e1ac04e63ed04a5712e515ed28eb92a78fd62
SVN Revision: 20847
Parent Commit: d35d04a
Lines Changed: +34, -1

1 Modified Path:

/source/blender/python/intern/bpy_rna.c (+34, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021