Correct Python exceptions

T35358 by Codemanx
This commit is contained in:
Campbell Barton
2014-08-07 00:42:49 +10:00
parent c9dee2b054
commit dd5acaaa6c
3 changed files with 2 additions and 5 deletions

View File

@@ -470,9 +470,7 @@ def lightmap_uvpack(meshes,
pretty_faces.append(pf_parent)
w, h = pf_parent.width, pf_parent.height
if w > h:
raise "error"
assert(w <= h)
if w == h:
even_dict.setdefault(w, []).append(pf_parent)