Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-08-03 15:26:31 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-08-03 15:27:34 +0300
commit3aa2dd74b55829ed8930c338e2ab27787c0afc9d (patch)
tree74e2517117c3ca1294844135eefecd9641895b02 /intern/opensubdiv/opensubdiv_converter.cc
parent60c8cdf763fa0ae7b81d629255ab4c63a00a061d (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/opensubdiv_converter.cc')
-rw-r--r--intern/opensubdiv/opensubdiv_converter.cc4
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),