diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-11-28 22:13:14 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-11-28 22:13:28 +0300 |
commit | 0f4cc474c9b4b42fb20b2af6ab9b1e4c0a3ae2a8 (patch) | |
tree | 65443d99ec30a91405569548499a308eeff40fd0 /source/blender | |
parent | bad0ace6a0abd0c9aac809f2a43e5e2ef67bf1aa (diff) |
Fix broken subdivision surface edit mode cage display.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/subdiv_mesh.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/subdiv_mesh.c b/source/blender/blenkernel/intern/subdiv_mesh.c index d8d4014b3cd..d9fcdf52969 100644 --- a/source/blender/blenkernel/intern/subdiv_mesh.c +++ b/source/blender/blenkernel/intern/subdiv_mesh.c @@ -790,12 +790,13 @@ static void subdiv_mesh_edge( Mesh *subdiv_mesh = ctx->subdiv_mesh; MEdge *subdiv_medge = subdiv_mesh->medge; MEdge *subdiv_edge = &subdiv_medge[subdiv_edge_index]; + const MEdge *coarse_edge = NULL; if (coarse_edge_index != ORIGINDEX_NONE) { const Mesh *coarse_mesh = ctx->coarse_mesh; const MEdge *coarse_medge = coarse_mesh->medge; - const MEdge *coarse_edge = &coarse_medge[coarse_edge_index]; - subdiv_copy_edge_data(ctx, subdiv_edge, coarse_edge); + coarse_edge = &coarse_medge[coarse_edge_index]; } + subdiv_copy_edge_data(ctx, subdiv_edge, coarse_edge); subdiv_edge->v1 = subdiv_v1; subdiv_edge->v2 = subdiv_v2; } |