diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-08-03 15:26:31 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-08-03 15:27:34 +0300 |
commit | 3aa2dd74b55829ed8930c338e2ab27787c0afc9d (patch) | |
tree | 74e2517117c3ca1294844135eefecd9641895b02 /intern/opensubdiv | |
parent | 60c8cdf763fa0ae7b81d629255ab4c63a00a061d (diff) |
OpenSubdiv: Correction to vert edge/face orientation code
non-manifold case didn't start ordering from the correct edge.
Diffstat (limited to 'intern/opensubdiv')
-rw-r--r-- | intern/opensubdiv/opensubdiv_converter.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/opensubdiv/opensubdiv_converter.cc b/intern/opensubdiv/opensubdiv_converter.cc index c0fca86ebab..74c02ec5ebc 100644 --- a/intern/opensubdiv/opensubdiv_converter.cc +++ b/intern/opensubdiv/opensubdiv_converter.cc @@ -235,8 +235,8 @@ inline bool TopologyRefinerFactory<OpenSubdiv_Converter>::assignComponentTopolog bool start_found = false; edge_start = vert_edges[i]; IndexArray edge_faces = getBaseEdgeFaces(refiner, edge_start); - for (int j = 0; j < edge_faces.size(); ++j) { - face_start = edge_faces[j]; + if (edge_faces.size() == 1) { + face_start = edge_faces[0]; if (!face_used[face_start]) { ConstIndexArray face_verts = getBaseFaceVertices(refiner, face_start), |