Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-08-06 18:42:49 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-08-06 18:44:55 +0400
commitdd5acaaa6c3fde6d7a0b161faa54696045780e7b (patch)
tree7c2bf6bed7b9e4cc243d9eb2f58ac04594273aa3 /release/scripts/startup/bl_operators/uvcalc_lightmap.py
parentc9dee2b054363ab8ae4e07c96685d6a41e38f0bd (diff)
Correct Python exceptions
T35358 by Codemanx
Diffstat (limited to 'release/scripts/startup/bl_operators/uvcalc_lightmap.py')
-rw-r--r--release/scripts/startup/bl_operators/uvcalc_lightmap.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_operators/uvcalc_lightmap.py b/release/scripts/startup/bl_operators/uvcalc_lightmap.py
index 6f54c051c0b..8f618e0632e 100644
--- a/release/scripts/startup/bl_operators/uvcalc_lightmap.py
+++ b/release/scripts/startup/bl_operators/uvcalc_lightmap.py
@@ -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)