remove workaround thats not needed anymore and could cause a python error when linking a mesh with keys to an object.
This commit is contained in:
parent
d5fadfdf40
commit
059be67aab
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user