* register operators like other classes

* operators now return sets (converted into flags)
* can't remove bpy_operator_wrap.c since macro's still use the custom register funcs
This commit is contained in:
2009-12-24 19:50:43 +00:00
parent 4dd3e6c360
commit bbe13e7823
41 changed files with 274 additions and 227 deletions

View File

@@ -121,12 +121,18 @@ class InfoFunctionRNA:
# self.name = rna_func.name # functions have no name!
self.description = rna_func.description.strip()
self.args = [] # todo
self.return_value = None # todo
self.args = []
self.return_value = None
def build(self):
rna_prop = self.bl_prop
pass
for rna_id, rna_prop in rna_type.parameters.items():
prop = GetInfoPropertyRNA(rna_prop, parent_id)
if rna_prop.use_return:
self.return_value = prop
else:
self.args.append(prop)
def __repr__(self):
txt = ''