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>2014-05-23 05:39:22 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-05-23 05:41:13 +0400
commit0ade57f8c035749eafe647f5698699c1bcd91a80 (patch)
treeba6ae86caa5dab7ba39c55269aa65c947593842a /release
parent2ffe03742063e4580f292efb6625e463a6bded76 (diff)
Transfer shape keys wasn't checking for mesh types
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_operators/object.py5
1 files changed, 5 insertions, 0 deletions
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'},