py rna api: turn class.is_register into a class property rather then a class method.
[blender.git] / release / scripts / modules / bpy_types.py
index 4eb712a65ccc59d467a463f5fb941542ed8bd9d0..38dc037a61d4cc51264895adf023e4381def799c 100644 (file)
@@ -572,6 +572,9 @@ class RNAMeta(type):
 
         return result
 
+    @property
+    def is_registered(cls):
+        return "bl_rna" in cls.__dict__
 
 import collections