From 940b6cd35872f67265efcf1a616959890076f941 Mon Sep 17 00:00:00 2001 From: Chris Foster <cdbfoster@gmail.com> Date: Mon, 11 Apr 2011 03:03:09 +0000 Subject: [PATCH] - Changed addon name as it appears in the Addons list. - Export: Selected Objects no longer exports children of the selected objects as well. --- io_export_directx_x.py | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/io_export_directx_x.py b/io_export_directx_x.py index cf8376abb..6f91b3ecb 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 -- GitLab