Transfer shape keys wasn't checking for mesh types

This commit is contained in:
Campbell Barton 2014-05-23 11:39:22 +10:00
parent 2ffe037420
commit 0ade57f8c0

@ -366,6 +366,11 @@ class ShapeTransfer(Operator):
orig_coords = me_cos(me.shape_keys.key_blocks[0].data) orig_coords = me_cos(me.shape_keys.key_blocks[0].data)
for ob_other in objects: for ob_other in objects:
if ob_other.type != 'MESH':
self.report({'WARNING'},
("Skipping '%s', "
"not a mesh") % ob_other.name)
continue
me_other = ob_other.data me_other = ob_other.data
if len(me_other.vertices) != len(me.vertices): if len(me_other.vertices) != len(me.vertices):
self.report({'WARNING'}, self.report({'WARNING'},