Revision: 34770
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=34770
Author:   campbellbarton
Date:     2011-02-11 01:27:00 +0000 (Fri, 11 Feb 2011)
Log Message:
-----------
bpy.utils.register_module() generator could go into eternal loop.

Modified Paths:
--------------
    trunk/blender/release/scripts/modules/bpy/utils.py

Modified: trunk/blender/release/scripts/modules/bpy/utils.py
===================================================================
--- trunk/blender/release/scripts/modules/bpy/utils.py  2011-02-11 01:12:01 UTC 
(rev 34769)
+++ trunk/blender/release/scripts/modules/bpy/utils.py  2011-02-11 01:27:00 UTC 
(rev 34770)
@@ -588,8 +588,9 @@
 
         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
 
 

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to