bpy.utils.register_module() generator could go into eternal loop.

This commit is contained in:
Campbell Barton 2011-02-11 01:27:00 +00:00
parent 2f4f046b6f
commit 17efeb310d

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