diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-08-08 09:21:37 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-08-08 09:21:37 +0400 |
commit | 22d2764d50f8571c0bbcdb4e7c944ba02763b43c (patch) | |
tree | 52c4f97b66f45d1153f97cc69f6eae127c293e3a /release/scripts/modules/bpyml_ui.py | |
parent | 0160901c90f0db6ad615af31dd8c9201b660257f (diff) |
use static sets rather then tuples, python optimizes this case.
minor change to lightmap unpack collecting unique meshes.
Diffstat (limited to 'release/scripts/modules/bpyml_ui.py')
-rw-r--r-- | release/scripts/modules/bpyml_ui.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/release/scripts/modules/bpyml_ui.py b/release/scripts/modules/bpyml_ui.py index 5df04b8bf34..f4b6de23dbb 100644 --- a/release/scripts/modules/bpyml_ui.py +++ b/release/scripts/modules/bpyml_ui.py @@ -40,13 +40,13 @@ def _parse_rna(prop, value): elif prop.type == 'INT': value = int(value) elif prop.type == 'BOOLEAN': - if value in (True, False): + if value in {True, False}: pass else: - if value not in ("True", "False"): + if value not in {"True", "False"}: raise Exception("invalid bool value: %s" % value) value = bool(value == "True") - elif prop.type in ('STRING', 'ENUM'): + elif prop.type in {'STRING', 'ENUM'}: pass elif prop.type == 'POINTER': value = eval("_bpy." + value) |