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

@ -421,7 +421,6 @@ def ngon_tessellate(from_data, indices, fix_loops=True):
loop_segments.append(context_loop)
else:
if context_loop and context_loop[-1][1] == v[1]:
#raise "as"
pass
else:
context_loop.append(v)

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)

View File

@ -634,7 +634,7 @@ def packIslands(islandList):
# print 'Box Packing Time:', time.time() - time1
#if len(pa ckedLs) != len(islandList):
# raise "Error packed boxes differs from original length"
# raise ValueError("Packed boxes differs from original length")
#print '\tWriting Packed Data to faces'
#XXX Window.DrawProgressBar(0.8, "Writing Packed Data to faces")