[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [730] trunk/py/scripts/addons/ space_view3d_property_chart.py: fixed error when the data could not be found on one of the items
Campbell Barton
ideasman42 at gmail.com
Thu Jun 10 15:32:19 CEST 2010
Revision: 730
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=730
Author: campbellbarton
Date: 2010-06-10 15:32:19 +0200 (Thu, 10 Jun 2010)
Log Message:
-----------
fixed error when the data could not be found on one of the items
Modified Paths:
--------------
trunk/py/scripts/addons/space_view3d_property_chart.py
Modified: trunk/py/scripts/addons/space_view3d_property_chart.py
===================================================================
--- trunk/py/scripts/addons/space_view3d_property_chart.py 2010-06-10 10:16:09 UTC (rev 729)
+++ trunk/py/scripts/addons/space_view3d_property_chart.py 2010-06-10 13:32:19 UTC (rev 730)
@@ -64,7 +64,7 @@
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 @@
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="")
More information about the Bf-extensions-cvs
mailing list