diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-11-05 08:10:30 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-11-05 08:10:30 +0300 |
commit | 60c3ef3d61836a5b05ef7796544c256fb5e15c74 (patch) | |
tree | bd84f236b4466a994118789085b8abf705b62db2 /source/blender/blenkernel/intern | |
parent | 52a2d5cbd269c4f7f84a866a3080ce821dce80d3 (diff) |
Fix T81136: Mesh.loop_triangles kept after applying modifiers
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/mesh_convert.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/mesh_convert.c b/source/blender/blenkernel/intern/mesh_convert.c index 247ea2975fd..24a32eeea66 100644 --- a/source/blender/blenkernel/intern/mesh_convert.c +++ b/source/blender/blenkernel/intern/mesh_convert.c @@ -1657,6 +1657,11 @@ void BKE_mesh_nomain_to_mesh(Mesh *mesh_src, tmp.totselect = 0; tmp.texflag &= ~ME_AUTOSPACE_EVALUATED; + /* Clear any run-time data. + * Even though this mesh wont typically have run-time data, the Python API can for e.g. + * create loop-triangle cache here, which is confusing when left in the mesh, see: T81136. */ + BKE_mesh_runtime_clear_geometry(&tmp); + /* skip the listbase */ MEMCPY_STRUCT_AFTER(mesh_dst, &tmp, id.prev); |