py rna api: turn class.is_register into a class property rather then a class method.

eg:

if MySybclass.is_registered:
    ...
This commit is contained in:
2011-02-14 07:26:07 +00:00
parent 44be05f7f9
commit a6765280f9
4 changed files with 52 additions and 11 deletions

View File

@@ -589,7 +589,7 @@ def _bpy_module_classes(module, is_registered=False):
if cls is None:
del typemap_list[i]
else:
if is_registered == ("bl_rna" in cls.__dict__):
if is_registered == cls.is_registered:
yield (cls, path, line)
i += 1