From 0ade57f8c035749eafe647f5698699c1bcd91a80 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 23 May 2014 11:39:22 +1000 Subject: [PATCH] Transfer shape keys wasn't checking for mesh types --- release/scripts/startup/bl_operators/object.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/release/scripts/startup/bl_operators/object.py b/release/scripts/startup/bl_operators/object.py index 5661e25bc0f..29b75e64fca 100644 --- a/release/scripts/startup/bl_operators/object.py +++ b/release/scripts/startup/bl_operators/object.py @@ -366,6 +366,11 @@ class ShapeTransfer(Operator): orig_coords = me_cos(me.shape_keys.key_blocks[0].data) 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 if len(me_other.vertices) != len(me.vertices): self.report({'WARNING'},