[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [33474] trunk/blender/release/scripts/op/ wm.py: correction to r33469, operators return sets so string comparison isn 't valid.
Campbell Barton
ideasman42 at gmail.com
Sun Dec 5 01:08:26 CET 2010
Revision: 33474
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=33474
Author: campbellbarton
Date: 2010-12-05 01:08:25 +0100 (Sun, 05 Dec 2010)
Log Message:
-----------
correction to r33469, operators return sets so string comparison isn't valid.
Modified Paths:
--------------
trunk/blender/release/scripts/op/wm.py
Modified: trunk/blender/release/scripts/op/wm.py
===================================================================
--- trunk/blender/release/scripts/op/wm.py 2010-12-04 18:34:31 UTC (rev 33473)
+++ trunk/blender/release/scripts/op/wm.py 2010-12-05 00:08:25 UTC (rev 33474)
@@ -30,11 +30,11 @@
bl_label = "Delete Edge Loop"
def execute(self, context):
- if bpy.ops.transform.edge_slide(value=1.0) == 'FINISHED':
+ if 'FINISHED' in bpy.ops.transform.edge_slide(value=1.0):
bpy.ops.mesh.select_more()
bpy.ops.mesh.remove_doubles()
+ return {'FINISHED'}
- return {'FINISHED'}
return {'CANCELLED'}
rna_path_prop = StringProperty(name="Context Attributes",
More information about the Bf-blender-cvs
mailing list