diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-06-10 17:32:19 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-06-10 17:32:19 +0400 |
commit | 9b58364d307d1604d9e54641458bd22b81b84955 (patch) | |
tree | 720858c509647e539d51d96ebdcfce91de87ff60 | |
parent | 22ddedf82fc7134346cfa2c9f9f4157d48cf2f4e (diff) |
fixed error when the data could not be found on one of the items
-rw-r--r-- | space_view3d_property_chart.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/space_view3d_property_chart.py b/space_view3d_property_chart.py index ad022bde..5bdd5fc7 100644 --- a/space_view3d_property_chart.py +++ b/space_view3d_property_chart.py @@ -64,7 +64,7 @@ class View3DEditProps(bpy.types.Panel): strings = id_storage.get(self._PROP_STORAGE_ID) if strings is None: - strings = id_storage[self._PROP_STORAGE_ID] = "" + strings = id_storage[self._PROP_STORAGE_ID] = "data data.name" if strings: @@ -108,15 +108,15 @@ class View3DEditProps(bpy.types.Panel): col = row.column() col.label(text=strings[i].rsplit(".", 1)[-1]) for obj, prop_pairs in prop_all: - pair = prop_pairs[i] - if pair: - col.prop(pair[0], pair[1], text="") + data, attr = prop_pairs[i] + if data: + col.prop(data, attr, text="") else: col.label(text="<missing>") # edit the display props col = layout.column() - col.label(text="Display Properties") + col.label(text="Object Properties") col.prop(id_storage, '["%s"]' % self._PROP_STORAGE_ID, text="") |