Cycles: Fix regression introduced in c96a4c8

A few places still needed to be updated to use the new Mesh::num_triangles()
method; wrong number from triangles.size() was causing crashes.
This commit is contained in:
Mai Lavelle
2016-06-02 20:57:04 -04:00
parent f08018f928
commit b6954c8da1
3 changed files with 4 additions and 4 deletions

View File

@@ -1485,7 +1485,7 @@ bool Mesh::need_attribute(Scene * /*scene*/, ustring name)
void Mesh::tessellate(DiagSplit *split)
{
int num_faces = triangles.size();
int num_faces = num_triangles();
add_face_normals();
add_vertex_normals();