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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2009-09-17 18:35:08 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2009-09-17 18:35:08 +0400
commit7783c286b9ac3622972ba979f80789aee8fabaed (patch)
treeeb06804f4ad048390172b1eccb1aeee468ebaae7 /release
parenta911fd88af5ffb2a377ade4e14b918f138ecaee2 (diff)
UI: fix display of shape key list to show with no items,
list template should also accept None.
Diffstat (limited to 'release')
-rw-r--r--release/ui/buttons_data_mesh.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/release/ui/buttons_data_mesh.py b/release/ui/buttons_data_mesh.py
index 8796d7a46a8..33b3960b381 100644
--- a/release/ui/buttons_data_mesh.py
+++ b/release/ui/buttons_data_mesh.py
@@ -102,8 +102,7 @@ class DATA_PT_shape_keys(DataButtonsPanel):
kb = ob.active_shape_key
row = layout.row()
- if key: # XXX - looks crappy
- row.template_list(key, "keys", ob, "active_shape_key_index", rows=2)
+ row.template_list(key, "keys", ob, "active_shape_key_index", rows=2)
col = row.column()