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_scene_x3d
parentd061f22884156296541aa01d6f41e993dbe5412a (diff)
use sets rather then tuples for if checks, python optimizes this case.
Diffstat (limited to 'io_scene_x3d')
-rw-r--r--io_scene_x3d/export_x3d.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_scene_x3d/export_x3d.py b/io_scene_x3d/export_x3d.py
index f1635f17..8d61d43d 100644
--- a/io_scene_x3d/export_x3d.py
+++ b/io_scene_x3d/export_x3d.py
@@ -1254,7 +1254,7 @@ def export(file,
if obj_type == 'CAMERA':
writeViewpoint(ident, obj, obj_matrix, scene)
- elif obj_type in ('MESH', 'CURVE', 'SURF', 'FONT'):
+ elif obj_type in {'MESH', 'CURVE', 'SURF', 'FONT'}:
if (obj_type != 'MESH') or (use_apply_modifiers and obj.is_modified(scene, 'PREVIEW')):
try:
me = obj.to_mesh(scene, use_apply_modifiers, 'PREVIEW')