Cycles: Fix access of NULL pointer as array

Was confusing guarded allocator for some reason.
This commit is contained in:
Sergey Sharybin 2017-04-07 15:07:25 +02:00
parent ddb42076c9
commit fd08570665
1 changed files with 3 additions and 0 deletions

View File

@ -560,6 +560,9 @@ static void attr_create_pointiness(Scene *scene,
return;
}
const int num_verts = b_mesh.vertices.length();
if(num_verts == 0) {
return;
}
/* STEP 1: Find out duplicated vertices and point duplicates to a single
* original vertex.
*/