rna function api was overwriting useful errors with keyword errors.
[blender.git] / release / ui / buttons_data_mesh.py
index 33b3960b381f968562181351b59d210ea2c9d507..8796d7a46a87291e37e38a115157d467c1c189f7 100644 (file)
@@ -102,7 +102,8 @@ class DATA_PT_shape_keys(DataButtonsPanel):
                kb = ob.active_shape_key
 
                row = layout.row()
-               row.template_list(key, "keys", ob, "active_shape_key_index", rows=2)
+               if key: # XXX - looks crappy
+                       row.template_list(key, "keys", ob, "active_shape_key_index", rows=2)
 
                col = row.column()