Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Foster <cdbfoster@gmail.com>2011-04-11 07:03:09 +0400
committerChris Foster <cdbfoster@gmail.com>2011-04-11 07:03:09 +0400
commit940b6cd35872f67265efcf1a616959890076f941 (patch)
tree0163edcc2c75ebc22e9a562595a49bb053ab7cb7 /io_export_directx_x.py
parent2ded65bdd64986bb87738989324fb5833fee3b55 (diff)
- Changed addon name as it appears in the Addons list.
- Export: Selected Objects no longer exports children of the selected objects as well.
Diffstat (limited to 'io_export_directx_x.py')
-rw-r--r--io_export_directx_x.py19
1 files changed, 10 insertions, 9 deletions
diff --git a/io_export_directx_x.py b/io_export_directx_x.py
index cf8376ab..6f91b3ec 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