diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-07-08 07:07:51 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-07-08 07:07:51 +0400 |
commit | 357afe06bc9964291ef0a7e56031a260646e36cf (patch) | |
tree | ac5fb7302ac9935272ac5c59f5effceca8534442 | |
parent | 6aae2698acee23ae2f7d50d1b4cea18a7143743c (diff) |
fix issue raised by [#27819] Unwrap Menu (U) -> Lightmap Pack throws Python Exception. But use a different fix.
-rw-r--r-- | release/scripts/startup/bl_operators/uvcalc_lightmap.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_operators/uvcalc_lightmap.py b/release/scripts/startup/bl_operators/uvcalc_lightmap.py index 3893612437a..40eaf91b042 100644 --- a/release/scripts/startup/bl_operators/uvcalc_lightmap.py +++ b/release/scripts/startup/bl_operators/uvcalc_lightmap.py @@ -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)) |