Add missing snap properties to transform operator.

This is used to force snap on and off when needed.

Also, when transform is not run modal, it will use default values for PET and snap properties (False) instead of scene settings. No need to force them off when calling transform with Exec.
This commit is contained in:
2009-11-27 16:15:34 +00:00
parent 994776811f
commit 20a2100a36
5 changed files with 61 additions and 39 deletions

View File

@@ -30,14 +30,10 @@ class MESH_OT_delete_edgeloop(bpy.types.Operator):
bl_label = "Delete Edge Loop"
def execute(self, context):
snap = bpy.context.scene.tool_settings.snap
bpy.context.scene.tool_settings.snap = False
bpy.ops.tfm.edge_slide(value=1.0)
bpy.ops.mesh.select_more()
bpy.ops.mesh.remove_doubles()
bpy.context.scene.tool_settings.snap = snap
return ('FINISHED',)
rna_path_prop = StringProperty(name="Context Attributes",