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:
authorCampbell Barton <ideasman42@gmail.com>2011-08-08 09:23:00 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-08-08 09:23:00 +0400
commit2135f8806c5154bb55374faf83cdecb48d4de090 (patch)
tree31cd393b5df32f5cef333f1a6d34398cc12bdfcc /io_export_directx_x.py
parentd061f22884156296541aa01d6f41e993dbe5412a (diff)
use sets rather then tuples for if checks, python optimizes this case.
Diffstat (limited to 'io_export_directx_x.py')
-rw-r--r--io_export_directx_x.py6
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):