diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-11-17 15:54:29 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-11-17 15:54:29 +0300 |
commit | f7682e2e0f5401a5cd2f394ed17fd29613b5381f (patch) | |
tree | 342e707f0afe9d8a88ed8d55c4cb6943f59e0046 /release/scripts/modules/rna_prop_ui.py | |
parent | 51f2dcd08ccde78223449383b98b9f7e35062b24 (diff) |
- in pose mode, pose bone properties are edited rather then armature bone
- new id property array method convert_to_pyobject()
- editing an array in the UI broke
- fixed for own error when updating ID prop api
Diffstat (limited to 'release/scripts/modules/rna_prop_ui.py')
-rw-r--r-- | release/scripts/modules/rna_prop_ui.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/release/scripts/modules/rna_prop_ui.py b/release/scripts/modules/rna_prop_ui.py index ebd1fe4cd34..a5584093442 100644 --- a/release/scripts/modules/rna_prop_ui.py +++ b/release/scripts/modules/rna_prop_ui.py @@ -70,6 +70,8 @@ def draw(layout, context, context_member): for key, val in items: row = layout.row() convert_to_pyobject = getattr(val, "convert_to_pyobject", None) + + val_orig = val if convert_to_pyobject: val_draw = val = val.convert_to_pyobject() val_draw = str(val_draw) @@ -96,7 +98,9 @@ def draw(layout, context, context_member): split = box.split(percentage=0.75) row = split.row() row.itemL(text=key) - if convert_to_pyobject: + + # explicit exception for arrays + if convert_to_pyobject and not hasattr(val_orig, "len"): row.itemL(text=val_draw) else: row.itemR(rna_item, key, text="") |