Browse Source

Fix bug with exporting objects with mesh modifiers

pull/10/head
Adam Johnson 10 years ago
parent
commit
4eaf2f5acc
  1. 4
      korman/exporter/mesh.py

4
korman/exporter/mesh.py

@ -249,7 +249,9 @@ class MeshConverter:
def export_object(self, bo): def export_object(self, bo):
# If this object has modifiers, then it's a unique mesh, and we don't need to try caching it # If this object has modifiers, then it's a unique mesh, and we don't need to try caching it
# Otherwise, let's *try* to share meshes as best we can... # Otherwise, let's *try* to share meshes as best we can...
if not bo.modifiers: if bo.modifiers:
drawables = self._export_mesh(bo)
else:
drawables = self._mesh_geospans.get(bo.data, None) drawables = self._mesh_geospans.get(bo.data, None)
if drawables is None: if drawables is None:
drawables = self._export_mesh(bo) drawables = self._export_mesh(bo)

Loading…
Cancel
Save