correction to r33469, operators return sets so string comparison isn't valid.
[blender-staging.git] / release / scripts / op / wm.py
index dbaca5f67fb879c0b20b3fbb11acf65912236a5d..43181ab0dce7e7ea30dde03fd69d598b80795da2 100644 (file)
@@ -30,11 +30,11 @@ class MESH_OT_delete_edgeloop(bpy.types.Operator):
     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 {'CANCELLED'}
 
 rna_path_prop = StringProperty(name="Context Attributes",