From 2135f8806c5154bb55374faf83cdecb48d4de090 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 8 Aug 2011 05:23:00 +0000 Subject: use sets rather then tuples for if checks, python optimizes this case. --- io_scene_3ds/import_3ds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'io_scene_3ds') diff --git a/io_scene_3ds/import_3ds.py b/io_scene_3ds/import_3ds.py index 209fc404..f39fe0e5 100644 --- a/io_scene_3ds/import_3ds.py +++ b/io_scene_3ds/import_3ds.py @@ -214,7 +214,7 @@ def skip_to_end(file, skip_chunk): def add_texture_to_material(image, texture, material, mapto): #print('assigning %s to %s' % (texture, material)) - if mapto not in ("COLOR", "SPECULARITY", "ALPHA", "NORMAL"): + if mapto not in {'COLOR', 'SPECULARITY', 'ALPHA', 'NORMAL'}: print('/tError: Cannot map to "%s"\n\tassuming diffuse color. modify material "%s" later.' % (mapto, material.name)) mapto = "COLOR" -- cgit v1.2.3