fix [#33179] Can't delete centered edge loop if x-mirror is activated

This commit is contained in:
2012-11-15 06:10:09 +00:00
parent 8d8c69406b
commit 029d29e4f7

View File

@@ -41,12 +41,17 @@ class MESH_OT_delete_edgeloop(Operator):
return bpy.ops.transform.edge_slide.poll()
def execute(self, context):
mesh = context.object.data
use_mirror_x = mesh.use_mirror_x
mesh.use_mirror_x = False
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'}
ret = {'FINISHED'}
else:
ret = {'CANCELLED'}
mesh.use_mirror_x = use_mirror_x
return ret
rna_path_prop = StringProperty(
name="Context Attributes",