diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-07-29 14:54:07 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-07-29 18:13:15 +0300 |
commit | af6bbab5b485c83c20c0819f7171d3224e38b1e3 (patch) | |
tree | f912016cf3013ad646f425d86351d275e8b7c8ad /intern/opensubdiv/opensubdiv_converter.cc | |
parent | becf20e29f606cff01d2e6595572b86e734a01d4 (diff) |
OpenSubdiv: Fix for weirdly ordered lines
Diffstat (limited to 'intern/opensubdiv/opensubdiv_converter.cc')
-rw-r--r-- | intern/opensubdiv/opensubdiv_converter.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/intern/opensubdiv/opensubdiv_converter.cc b/intern/opensubdiv/opensubdiv_converter.cc index 6b245db2530..5ae9a6ea066 100644 --- a/intern/opensubdiv/opensubdiv_converter.cc +++ b/intern/opensubdiv/opensubdiv_converter.cc @@ -109,14 +109,14 @@ inline bool TopologyRefinerFactory<OpenSubdiv_Converter>::assignComponentTopolog for (int vert = 0; vert < num_verts; ++vert) { /* Vert-Faces */ IndexArray dst_vert_faces = getBaseVertexFaces(refiner, vert); - int num_vert_edges = conv.get_num_vert_edges(&conv, vert); - int *vert_edges = new int[num_vert_edges]; - conv.get_vert_edges(&conv, vert, vert_edges); - /* Vert-Edges */ - IndexArray dst_vert_edges = getBaseVertexEdges(refiner, vert); int num_vert_faces = conv.get_num_vert_faces(&conv, vert); int *vert_faces = new int[num_vert_faces]; conv.get_vert_faces(&conv, vert, vert_faces); + /* Vert-Edges */ + IndexArray dst_vert_edges = getBaseVertexEdges(refiner, vert); + int num_vert_edges = conv.get_num_vert_edges(&conv, vert); + int *vert_edges = new int[num_vert_edges]; + conv.get_vert_edges(&conv, vert, vert_edges); /* Order vertex edges and faces in a CCW order. */ Index face_start = INDEX_INVALID; Index edge_start = INDEX_INVALID; |