diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-11-17 16:18:26 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-11-17 16:18:26 +0300 |
commit | 64104524cc4e1677deed601c265c992fa494423c (patch) | |
tree | ca37e1b58c3d116cb8e99b45e11496a708b86436 /release | |
parent | 5bc46cab8c829778dce8269a31daac25e4232396 (diff) |
fix for error editing a string property with quotes
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/modules/rna_prop_ui.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/release/scripts/modules/rna_prop_ui.py b/release/scripts/modules/rna_prop_ui.py index a5584093442..053a72df9b5 100644 --- a/release/scripts/modules/rna_prop_ui.py +++ b/release/scripts/modules/rna_prop_ui.py @@ -76,10 +76,7 @@ def draw(layout, context, context_member): val_draw = val = val.convert_to_pyobject() val_draw = str(val_draw) else: - if type(val)==str: - val_draw = '"' + val + '"' - else: - val_draw = val + val_draw = val box = row.box() @@ -170,7 +167,10 @@ class WM_OT_properties_edit_end(bpy.types.Operator): try: value = eval(global_value) except: - value = '"' + global_value + '"' # keep as a string + value = global_value + + if type(value) == str: + value = '"' + value + '"' # First remove |