From 3e9408cbe2647b9104f289d0474ff068e7fab494 Mon Sep 17 00:00:00 2001
From: Campbell Barton <ideasman42@gmail.com>
Date: Mon, 25 Jul 2011 02:41:44 +0000
Subject: [PATCH] missed this in last commit

---
 animation_add_corrective_shape_key.py | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/animation_add_corrective_shape_key.py b/animation_add_corrective_shape_key.py
index 6e02d092a..b00d318d0 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'}
-- 
GitLab