Browse Source

Remove try...except from mesh conversion

This creates annoying "during the handling of the above exception"
messages in tracebacks that make things needlessly harder to debug
pull/8/head
Adam Johnson 10 years ago
parent
commit
7e281616a9
  1. 5
      korman/exporter/mesh.py

5
korman/exporter/mesh.py

@ -244,9 +244,8 @@ class MeshConverter:
def export_object(self, bo): def export_object(self, bo):
# Have we already exported this mesh? # Have we already exported this mesh?
try: drawables = self._mesh_geospans.get(bo.data, None)
drawables = self._mesh_geospans[bo.data] if drawables is None:
except LookupError:
drawables = self._export_mesh(bo) drawables = self._export_mesh(bo)
# Create the DrawInterface # Create the DrawInterface

Loading…
Cancel
Save