From 4eaf2f5accf4a0d192ed915529fefecb91883a93 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Mon, 13 Jul 2015 13:31:08 -0400 Subject: [PATCH] Fix bug with exporting objects with mesh modifiers --- korman/exporter/mesh.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/korman/exporter/mesh.py b/korman/exporter/mesh.py index 4301f9a..1141a5b 100644 --- a/korman/exporter/mesh.py +++ b/korman/exporter/mesh.py @@ -249,7 +249,9 @@ class MeshConverter: 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 # 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) if drawables is None: drawables = self._export_mesh(bo)