'bmesh.ops.delete' Default Parameter: 'context='VERTS' not working. #74720
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#74720
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:
blender/blender@8751af6d19
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
Added subscriber: @AndreasErni
Changed status from 'Needs Triage' to: 'Confirmed'
Added subscribers: @ideasman42, @mano-wii
It seems that all parameters of type enum or int for bmesh operators always start with the default value 0.
But in this case, the enum starts with the value 1.
This patch allows you to always use the first enum value as the default value (instead of 0):
This issue was referenced by blender/blender@3a5c16f1c9
Changed status from 'Confirmed' to: 'Resolved'