bpy.utils.register_module() generator could go into eternal loop.
authorCampbell Barton <ideasman42@gmail.com>
Fri, 11 Feb 2011 01:27:00 +0000 (01:27 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 11 Feb 2011 01:27:00 +0000 (01:27 +0000)
release/scripts/modules/bpy/utils.py

index 1bb62fdb29fa7b674946f2f5bf34338db8cbd0f8..e3e93203235251922e8346116c7a24aa7701a04d 100644 (file)
@@ -588,8 +588,9 @@ def _bpy_module_classes(module, is_registered=False):
 
         if cls is None:
             del typemap_list[i]
-        elif is_registered == ("bl_rna" in cls.__dict__):
-            yield (cls, path, line)
+        else:
+            if is_registered == ("bl_rna" in cls.__dict__):
+                yield (cls, path, line)
             i += 1