Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--space_view3d_copy_attributes.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/space_view3d_copy_attributes.py b/space_view3d_copy_attributes.py
index da741737..93dfaa38 100644
--- a/space_view3d_copy_attributes.py
+++ b/space_view3d_copy_attributes.py
@@ -436,6 +436,9 @@ def obGrp(ob, active, context):
def obWei(ob, active, context):
+ # sanity check: are source and target both mesh objects?
+ if ob.type != 'MESH' or active.type != 'MESH':
+ return('ERROR', "objects have to be of mesh type, doing nothing")
me_source = active.data
me_target = ob.data
# sanity check: do source and target have the same amount of verts?