From c32e1e6e4517a590e21b139b793218a29807ec1c Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Tue, 14 Jul 2015 23:39:13 -0400 Subject: [PATCH] Don't use the name of a temp object in an error --- korman/exporter/mesh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/korman/exporter/mesh.py b/korman/exporter/mesh.py index 1141a5b..0e5e287 100644 --- a/korman/exporter/mesh.py +++ b/korman/exporter/mesh.py @@ -238,7 +238,7 @@ class MeshConverter: # Soft vertex limit at 0x8000 for PotS and below. Works fine as long as it's a uint16 # MOUL only allows signed int16s, however :/ if numVerts > _MAX_VERTS_PER_SPAN or (numVerts > _WARN_VERTS_PER_SPAN and self._mgr.getVer() >= pvMoul): - raise explosions.TooManyVerticesError(mesh.name, geospan.material.name, numVerts) + raise explosions.TooManyVerticesError(bo.data.name, geospan.material.name, numVerts) elif numVerts > _WARN_VERTS_PER_SPAN: pass # FIXME