Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Mueller <nexyon@gmail.com>2010-06-19 14:50:23 +0400
committerJoerg Mueller <nexyon@gmail.com>2010-06-19 14:50:23 +0400
commit229b7639e72c5290b3be24747fafd14c7aeaf71b (patch)
treef5d7b7c8be775e4fd21aae1786ac6ee395957a63 /release/scripts/modules/bpy_types.py
parent615af47559f7c1bf0aa13011d21ed972f433613c (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.py5
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