diff options
author | Joerg Mueller <nexyon@gmail.com> | 2010-06-19 14:50:23 +0400 |
---|---|---|
committer | Joerg Mueller <nexyon@gmail.com> | 2010-06-19 14:50:23 +0400 |
commit | 229b7639e72c5290b3be24747fafd14c7aeaf71b (patch) | |
tree | f5d7b7c8be775e4fd21aae1786ac6ee395957a63 /release/scripts/modules/bpy_types.py | |
parent | 615af47559f7c1bf0aa13011d21ed972f433613c (diff) |
Merged revision 29562 from /branches/soc-2010-nexyon.
Diffstat (limited to 'release/scripts/modules/bpy_types.py')
-rw-r--r-- | release/scripts/modules/bpy_types.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/release/scripts/modules/bpy_types.py b/release/scripts/modules/bpy_types.py index f6090d76533..b1c5429d4ba 100644 --- a/release/scripts/modules/bpy_types.py +++ b/release/scripts/modules/bpy_types.py @@ -531,6 +531,11 @@ class Text(bpy_types.ID): self.clear() self.write(string) + @property + def users_logic(self): + """Logic bricks that use this text""" + import bpy + return tuple(obj for obj in bpy.data.objects if self in [cont.text for cont in obj.game.controllers if cont.type == 'PYTHON']) import collections |