[Bf-blender-cvs] [0ade57f] master: Transfer shape keys wasn't checking for mesh types
Campbell Barton
noreply at git.blender.org
Fri May 23 06:54:56 CEST 2014
Commit: 0ade57f8c035749eafe647f5698699c1bcd91a80
Author: Campbell Barton
Date: Fri May 23 11:39:22 2014 +1000
https://developer.blender.org/rB0ade57f8c035749eafe647f5698699c1bcd91a80
Transfer shape keys wasn't checking for mesh types
===================================================================
M release/scripts/startup/bl_operators/object.py
===================================================================
diff --git a/release/scripts/startup/bl_operators/object.py b/release/scripts/startup/bl_operators/object.py
index 5661e25..29b75e6 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'},
More information about the Bf-blender-cvs
mailing list