fix issue raised by [#27819] Unwrap Menu (U) -> Lightmap Pack throws Python Exception...
authorCampbell Barton <ideasman42@gmail.com>
Fri, 8 Jul 2011 03:07:51 +0000 (03:07 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 8 Jul 2011 03:07:51 +0000 (03:07 +0000)
release/scripts/startup/bl_operators/uvcalc_lightmap.py

index 3893612437ad5ba34dc70db4e5ff313cec613ae4..40eaf91b0426a8f7194b724ceb0b596a921f5d93 100644 (file)
@@ -406,7 +406,7 @@ def lightmap_uvpack(meshes,
             ok = False
 
             # Tall boxes in groups of 2
-            for d, boxes in odd_dict.items():
+            for d, boxes in list(odd_dict.items()):
                 if d[1] < max_int_dimension:
                     #\boxes.sort(key = lambda a: len(a.children))
                     while len(boxes) >= 2:
@@ -427,7 +427,7 @@ def lightmap_uvpack(meshes,
                             odd_dict.setdefault((w, h), []).append(pf_parent)
 
             # Even boxes in groups of 4
-            for d, boxes in even_dict.items():
+            for d, boxes in list(even_dict.items()):
                 if d < max_int_dimension:
                     boxes.sort(key=lambda a: len(a.children))