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:
authorCampbell Barton <ideasman42@gmail.com>2010-02-01 17:25:38 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-02-01 17:25:38 +0300
commit059be67aab85f81176036bf7f8d2aa344cd1c572 (patch)
tree6bf92473042033e22474799874a76e433e063121 /release/scripts/ui/properties_data_mesh.py
parentd5fadfdf40cfa9dc804507e215875d05ede82045 (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.py7
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'