System Information
Operating system: Windows-10-10.0.17763-SP0 64 Bits
Graphics card: GeForce GTX 970/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 432.00
Blender Version
Broken: version: 2.83 (sub 8), branch: master, commit date: 2020-03-12 00:33, hash: rB8751af6d1902
Worked: Never (2.8+)
Short description of error
When calling 'bpy.ops.delete' without providing a 'context' argument, the method has no effect. The docs state otherwise.
https://docs.blender.org/api/current/bmesh.ops.html#bmesh.ops.delete
Exact steps for others to reproduce the error
- Open a new blend file with a cube
- Select the cube and enter edit mode
- Execute the following script:
import bpy import bmesh mesh = bpy.context.edit_object.data bm = bmesh.from_edit_mesh(mesh) bm.verts.ensure_lookup_table() verts = bm.verts[0:3] bmesh.ops.delete(bm, geom=verts) # The verts get correctly deleted when providing context argument. #bmesh.ops.delete(bm, geom=verts, context='VERTS') bmesh.update_edit_mesh(mesh)