Fix T56722: Crash - Entering mesh Edit Mode.
authorBastien Montagne <montagne29@wanadoo.fr>
Sat, 8 Sep 2018 09:19:07 +0000 (11:19 +0200)
committerBastien Montagne <montagne29@wanadoo.fr>
Sat, 8 Sep 2018 09:19:07 +0000 (11:19 +0200)
Seriously...

source/blender/draw/intern/draw_cache_impl_mesh.c

index fd9dc2875ad3169405d265e5642d8961d8aec889..f0f83d76bc2d4ede2a2f5ca354835a9b1f87ac20 100644 (file)
@@ -1343,7 +1343,7 @@ static uchar mesh_render_data_looptri_flag(MeshRenderData *rdata, const BMFace *
 
 #ifdef WITH_FREESTYLE
        BMesh *bm = rdata->edit_bmesh->bm;
-       if (CustomData_has_layer(&bm->edata, CD_FREESTYLE_EDGE)) {
+       if (CustomData_has_layer(&bm->pdata, CD_FREESTYLE_FACE)) {
                FreestyleFace *ffa = CustomData_bmesh_get(&bm->pdata, efa->head.data, CD_FREESTYLE_FACE);
 
                if (ffa->flag & FREESTYLE_FACE_MARK)