diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-02-01 17:25:38 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-02-01 17:25:38 +0300 |
commit | 059be67aab85f81176036bf7f8d2aa344cd1c572 (patch) | |
tree | 6bf92473042033e22474799874a76e433e063121 /release/scripts/ui/properties_data_mesh.py | |
parent | d5fadfdf40cfa9dc804507e215875d05ede82045 (diff) |
remove workaround thats not needed anymore and could cause a python error when linking a mesh with keys to an object.
Diffstat (limited to 'release/scripts/ui/properties_data_mesh.py')
-rw-r--r-- | release/scripts/ui/properties_data_mesh.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/release/scripts/ui/properties_data_mesh.py b/release/scripts/ui/properties_data_mesh.py index 82c3b37381f..fb540eade9c 100644 --- a/release/scripts/ui/properties_data_mesh.py +++ b/release/scripts/ui/properties_data_mesh.py @@ -155,12 +155,7 @@ class DATA_PT_shape_keys(DataButtonsPanel): ob = context.object key = ob.data.shape_keys - if key and len(key.keys): - # this is so that we get the active shapekey from the - # shapekeys block, not from object data - kb = key.keys[ob.active_shape_key.name] - else: - kb = None + kb = ob.active_shape_key wide_ui = context.region.width > narrowui enable_edit = ob.mode != 'EDIT' |