py rna api: turn class.is_register into a class property rather then a class method.
[blender.git] / release / scripts / modules / bpy / utils.py
index e00c12e3c0659b3f287d01a0ac77aaa81573e9cf..56f365db7d8f1afdc25eeb7c0c0f3311a95ece70 100644 (file)
@@ -589,7 +589,7 @@ def _bpy_module_classes(module, is_registered=False):
         if cls is None:
             del typemap_list[i]
         else:
         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
 
                 yield (cls, path, line)
             i += 1