diff options
Diffstat (limited to 'io_export_directx_x.py')
-rw-r--r-- | io_export_directx_x.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/io_export_directx_x.py b/io_export_directx_x.py index 056111b2..76a60d42 100644 --- a/io_export_directx_x.py +++ b/io_export_directx_x.py @@ -107,11 +107,11 @@ def ExportDirectX(Config): print("Generating Object list for export... (Root parents only)") if Config.ExportMode == 1: Config.ExportList = [Object for Object in Config.context.scene.objects - if Object.type in ("ARMATURE", "EMPTY", "MESH") + if Object.type in {'ARMATURE', 'EMPTY', 'MESH'} and Object.parent is None] else: ExportList = [Object for Object in Config.context.selected_objects - if Object.type in ("ARMATURE", "EMPTY", "MESH")] + if Object.type in {'ARMATURE', 'EMPTY', 'MESH'}] Config.ExportList = [Object for Object in ExportList if Object.parent not in ExportList] if Config.Verbose: @@ -184,7 +184,7 @@ def ExportDirectX(Config): def GetObjectChildren(Parent): return [Object for Object in Parent.children - if Object.type in ("ARMATURE", "EMPTY", "MESH")] + if Object.type in {'ARMATURE', 'EMPTY', 'MESH'}] #Returns the vertex count of Mesh, counting each vertex for every face. def GetMeshVertexCount(Mesh): |