add bpy collection method .find(key), so you can get the index of an item in a collec...
authorCampbell Barton <ideasman42@gmail.com>
Thu, 5 Jan 2012 06:05:45 +0000 (06:05 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 5 Jan 2012 06:05:45 +0000 (06:05 +0000)
commite039a631a9983472c3ec67fa3aea9e5495eef65e
treef39ab0a2a6a752d32806ed0e9574b729f45300a8
parent8d55b7bf0e43b655a9e74e4325ee835cc84355bb
add bpy collection method .find(key), so you can get the index of an item in a collection, -1 if not found.

use this to replace bge text ui py function.
release/scripts/startup/bl_ui/space_logic.py
source/blender/python/intern/bpy_rna.c