diff --git a/io_export_directx_x.py b/io_export_directx_x.py index cf8376abb822fbf78b065536a39d98d4c4994957..6f91b3ecb90e8cc4f26c94b7adaa0204df77c838 100644 --- a/io_export_directx_x.py +++ b/io_export_directx_x.py @@ -16,7 +16,7 @@ # ***** GPL LICENSE BLOCK ***** bl_info = { - "name": "Export DirectX Model Format (.x)", + "name": "DirectX Model Format (.x)", "author": "Chris Foster (Kira Vakaan)", "version": (2, 1), "blender": (2, 5, 7), @@ -108,7 +108,7 @@ def ExportDirectX(Config): Config.ExportList = [Object for Object in ExportList if Object.parent not in ExportList] if Config.Verbose: - print("Done") + print(" List: {}\nDone".format(Config.ExportList)) if Config.Verbose: print("Setting up...") @@ -257,12 +257,13 @@ def WriteObjects(Config, ObjectList): if Config.Verbose: print(" Done") - ChildList = GetObjectChildren(Object) - if Config.Verbose: - print(" Writing Children...") - WriteObjects(Config, ChildList) - if Config.Verbose: - print(" Done Writing Children") + if Config.ExportMode == 1: + ChildList = GetObjectChildren(Object) + if Config.Verbose: + print(" Writing Children...") + WriteObjects(Config, ChildList) + if Config.Verbose: + print(" Done Writing Children") if Object.type == "MESH": if Config.Verbose: @@ -1237,4 +1238,4 @@ def unregister(): if __name__ == "__main__": - register() + register() \ No newline at end of file