Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-11-17 15:54:29 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-11-17 15:54:29 +0300
commitf7682e2e0f5401a5cd2f394ed17fd29613b5381f (patch)
tree342e707f0afe9d8a88ed8d55c4cb6943f59e0046 /release/scripts/modules/rna_prop_ui.py
parent51f2dcd08ccde78223449383b98b9f7e35062b24 (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.py6
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="")