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:
authorCampbell Barton <ideasman42@gmail.com>2011-07-25 06:41:44 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-07-25 06:41:44 +0400
commit3e9408cbe2647b9104f289d0474ff068e7fab494 (patch)
tree0bb8b8162d4a75c84af4c73b24cf161c5598cd84 /animation_add_corrective_shape_key.py
parente6e82736a586b1c1b7dda83cbeea5737da8b551b (diff)
missed this in last commit
Diffstat (limited to 'animation_add_corrective_shape_key.py')
-rw-r--r--animation_add_corrective_shape_key.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/animation_add_corrective_shape_key.py b/animation_add_corrective_shape_key.py
index 6e02d092..b00d318d 100644
--- a/animation_add_corrective_shape_key.py
+++ b/animation_add_corrective_shape_key.py
@@ -447,20 +447,17 @@ class add_corrective_pose_shape_fast(bpy.types.Operator):
return context.active_object != None
def execute(self, context):
-
- if len(context.selected_objects) > 2:
- print("Select source and target objects please")
- return {'FINISHED'}
-
selection = context.selected_objects
+ if len(selection) != 2:
+ self.report({'ERROR'}, "Select source and target objects")
+ return {'CANCELLED'}
+
target = context.active_object
if context.active_object == selection[0]:
source = selection[1]
else:
source = selection[0]
- print(source)
- print(target)
func_add_corrective_pose_shape_fast( source, target)
return {'FINISHED'}