Commit 559bd95e authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

subdivide: double-braces required in C++11.

parent f8d8f7a8
......@@ -119,9 +119,9 @@ subdivide(VertexList &vertices, TriangleList triangles)
for (int edge = 0; edge < 3; ++edge)
mid[edge] = vertexForEdge(lookup, vertices, each[edge], each[(edge + 1) % 3]);
result.push_back({ each[0], mid[0], mid[2] });
result.push_back({ each[1], mid[1], mid[0] });
result.push_back({ each[2], mid[2], mid[1] });
result.push_back({{ each[0], mid[0], mid[2] }});
result.push_back({{ each[1], mid[1], mid[0] }});
result.push_back({{ each[2], mid[2], mid[1] }});
result.push_back(mid);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment