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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user