Page MenuHome

Fix crash using object.to_mesh() when in edit mode
ClosedPublic

Authored by Sergey Sharybin (sergey) on Apr 7 2020, 11:40 AM.

Details

Summary

The root of the issue was caused by mesh which was a result of to_mesh()
had the same edit_mesh pointer as the input object, causing double-free
error.

This fix makes it so result mesh does not have edit mesh pointer.
Motivation part behind this is to make the result of to_mesh() to be
somewhat independent from the input.

Diff Detail

Repository
rB Blender

Event Timeline

This revision is now accepted and ready to land.Apr 7 2020, 11:50 AM

I have tested that the fix works on my test case. So i guess its all good. Thanks !