diff options
author | Martin Poirier <theeth@yahoo.com> | 2009-11-27 19:15:34 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2009-11-27 19:15:34 +0300 |
commit | 20a2100a365da94182f3e90174a7a043cfba3a12 (patch) | |
tree | 3ccf11d69893c72203640ce1ffab85b2673bfd05 /release/scripts/op | |
parent | 994776811f06d5c0b19242bf8d5ca49ae38ae0a6 (diff) |
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.
Diffstat (limited to 'release/scripts/op')
-rw-r--r-- | release/scripts/op/wm.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/release/scripts/op/wm.py b/release/scripts/op/wm.py index f4cb136693f..f93c0d47e28 100644 --- a/release/scripts/op/wm.py +++ b/release/scripts/op/wm.py @@ -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", |