[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [28610] trunk/blender/release/scripts/ modules/bpy_types.py: error in last commit

Campbell Barton ideasman42 at gmail.com
Thu May 6 10:31:39 CEST 2010


Revision: 28610
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=28610
Author:   campbellbarton
Date:     2010-05-06 10:31:39 +0200 (Thu, 06 May 2010)

Log Message:
-----------
error in last commit

Modified Paths:
--------------
    trunk/blender/release/scripts/modules/bpy_types.py

Modified: trunk/blender/release/scripts/modules/bpy_types.py
===================================================================
--- trunk/blender/release/scripts/modules/bpy_types.py	2010-05-06 08:30:42 UTC (rev 28609)
+++ trunk/blender/release/scripts/modules/bpy_types.py	2010-05-06 08:31:39 UTC (rev 28610)
@@ -45,7 +45,7 @@
     def children(self):
         """All the children of this object"""
         import bpy
-        return [child for child in bpy.data.objects if child.parent == self]
+        return tuple(child for child in bpy.data.objects if child.parent == self)
 
     @property
     def group_users(self):
@@ -61,14 +61,7 @@
         name = self.name
         return tuple(scene for scene in bpy.data.scenes if name in scene.objects)
 
-    @property
-    def scene_users(self):
-        """The scenes this object is in"""
-        import bpy
-        name = self.name
-        return [scene for scene in bpy.data.scenes if name in scene.objects]
 
-
 class _GenericBone:
     """
     functions for bones, common between Armature/Pose/Edit bones.





More information about the Bf-blender-cvs mailing list