From 6413308c7cdeb40fd2379ed1b8b2489bf88fa232 Mon Sep 17 00:00:00 2001 From: Nathan Vegdahl Date: Mon, 31 Jul 2017 00:31:53 -0700 Subject: [PATCH] PsychoBlend: only export meshes that have faces. --- psychoblend/assembly.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/psychoblend/assembly.py b/psychoblend/assembly.py index 11b090d..e70bd24 100644 --- a/psychoblend/assembly.py +++ b/psychoblend/assembly.py @@ -112,7 +112,8 @@ class Assembly: mesh_name = group_prefix + escape_name("__" + ob.name + "__" + ob.data.name + "_") else: mesh_name = group_prefix + escape_name("__" + ob.data.name + "_") - should_export_mesh = mesh_name not in self.mesh_names + has_faces = len(ob.data.polygons) > 0 + should_export_mesh = has_faces and (mesh_name not in self.mesh_names) # Get mesh if should_export_mesh: