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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user