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-07-29 14:54:07 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-07-29 18:13:15 +0300
commitaf6bbab5b485c83c20c0819f7171d3224e38b1e3 (patch)
treef912016cf3013ad646f425d86351d275e8b7c8ad /intern/opensubdiv
parentbecf20e29f606cff01d2e6595572b86e734a01d4 (diff)
OpenSubdiv: Fix for weirdly ordered lines
Diffstat (limited to 'intern/opensubdiv')
-rw-r--r--intern/opensubdiv/opensubdiv_converter.cc10
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;