api changes suggested by Stani
authorCampbell Barton <ideasman42@gmail.com>
Fri, 6 Nov 2009 22:42:15 +0000 (22:42 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 6 Nov 2009 22:42:15 +0000 (22:42 +0000)
release/scripts/modules/bpy_ext/Object.py
release/scripts/modules/bpy_ops.py

index 203e50bdef74434a1f2ea05f329f761e67a00da3..59c2ca3ebda1ff01f7e727b21331a9b2f5931798 100644 (file)
@@ -19,4 +19,4 @@
 import bpy
 class_obj = bpy.types.Object
 
-class_obj.getChildren = lambda ob: [child for child in bpy.data.objects if child.parent == ob]
+class_obj.getChildren = lambda self: [child for child in bpy.data.objects if child.parent == self]
index 55df062ac83be1df9c075c109ed6507755bdecc5..8078816f982fed373ebac7a03a50ff6bac23aafb 100644 (file)
@@ -127,6 +127,12 @@ class bpy_ops_submodule_op(object):
     '''
 
     __keys__ = ('module', 'func')
+    
+    
+    def _get_doc(self):
+        return op_as_string(self.idname())
+    
+    __doc__ = property(_get_doc)
 
     def __init__(self, module, func):
         self.module = module