[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2174] trunk/py/scripts/addons/ animation_add_corrective_shape_key.py: missed this in last commit
Campbell Barton
ideasman42 at gmail.com
Mon Jul 25 04:41:44 CEST 2011
Revision: 2174
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2174
Author: campbellbarton
Date: 2011-07-25 02:41:44 +0000 (Mon, 25 Jul 2011)
Log Message:
-----------
missed this in last commit
Modified Paths:
--------------
trunk/py/scripts/addons/animation_add_corrective_shape_key.py
Modified: trunk/py/scripts/addons/animation_add_corrective_shape_key.py
===================================================================
--- trunk/py/scripts/addons/animation_add_corrective_shape_key.py 2011-07-25 02:39:06 UTC (rev 2173)
+++ trunk/py/scripts/addons/animation_add_corrective_shape_key.py 2011-07-25 02:41:44 UTC (rev 2174)
@@ -447,20 +447,17 @@
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'}
More information about the Bf-extensions-cvs
mailing list