Fix T78361: Crash When Modelling

Forgot to free the tangent layer for bmesh in the drawing code.
This commit is contained in:
Jeroen Bakker 2020-06-29 15:36:46 +02:00
parent cb5bfb32ba
commit 13e2337da7
Notes: blender-bot 2023-02-13 21:58:43 +01:00
Referenced by issue #78361, Blender crashes on many modeling operations (loopcut, extrude, duplication, ...) on mesh with normal map node connected to material
1 changed files with 1 additions and 0 deletions

View File

@ -2059,6 +2059,7 @@ static void extract_tan_ex(const MeshRenderData *mr, GPUVertBuf *vbo, const bool
}
}
CustomData_free_layers(ldata, CD_TANGENT, mr->loop_len);
CustomData_free(&loop_data, mr->loop_len);
}