System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 457.30
Blender Version
Broken: version: 2.91.0, branch: master, commit date: 2020-11-25 08:34, hash: rB0f45cab862b8
Short description of error
Blender crashes when we use the following driver for a bone's X position:
def Test(self, depsgraph): cube = depsgraph.objects.get("Cube") mesh = cube.to_mesh() result = mesh.vertices[0].co.x return result # Test(self, depsgraph) bpy.app.driver_namespace["Test"] = Test
Exact steps for others to reproduce the error
- Open the attached .blend file
- Run the driver.py script
- In the Driver window, highlight the Expression: Test(self, depsgraph) and press Enter
- Scrub the timeline