Bmesh: removed deform parameter of from_object still in PyDoc #89013
Operating system: Ubuntu 18.04.5 LTS
Graphics card: nvidia GTX 1050 Ti
Broken: 3.0.0, 93fd07e19cf, master, 2021-06-09
Worked: 2.93.0 LTS
Short description of error
deform parameter for
from_object method of
BMesh object was deprecated in 2.93 and removed in 3.0 (task D10086). The latest code in
master branch has indeed removed
kwlist, and attempting to use in Python console results in
TypeError: 'deform' is an invalid keyword argument for from_object() (expected), but
deform argument info still exists in PyDoc.
depsgraph argument was never added to PyDoc (since task D4065).
Exact steps for others to reproduce the error
From starting blend file, open Python console and type:
import bmesh bm = bmesh.new() bm.from_object( # press tab to see deform in list, but not depsgraph bm.from_object(bpy.data.objects['Cube'], bpy.context.evaluated_depsgraph_get(), deform=True) # fails
Note to devs
I have a patch to update PyDoc to exclude
deform and include
depsgraph. I haven't built Blender from source in many months, so once I have finished installing all deps, rebuilt blender, and have tested the patch, I can submit the patch.
Changed status from 'Needs Triage' to: 'Confirmed'
I have a patch to update PyDoc to exclude deform and include depsgraph. I haven't built Blender from source in many months, so once I have finished installing all deps, rebuilt blender, and have tested the patch, I can submit the patch.
Let us know if you need any help, feel free to reach out on https://blender.chat/channel/blender-coders
This issue was referenced by blender/blender@ba7f110753
This issue was referenced by blender/blender@aa0bd29546
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?