From 3aa2dd74b55829ed8930c338e2ab27787c0afc9d Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 3 Aug 2015 14:26:31 +0200 Subject: OpenSubdiv: Correction to vert edge/face orientation code non-manifold case didn't start ordering from the correct edge. --- intern/opensubdiv/opensubdiv_converter.cc | 4 ++-- 1 file 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::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), -- cgit v1.2.3