Fix T71878: Cycles crash with adaptive subdivision and empty mesh

This commit is contained in:
Brecht Van Lommel 2019-12-08 19:49:34 +01:00
parent 52c834983f
commit 761111efb8

@ -394,7 +394,7 @@ void Mesh::tessellate(DiagSplit *split)
int num_faces = subd_faces.size();
Attribute *attr_vN = subd_attributes.find(ATTR_STD_VERTEX_NORMAL);
float3 *vN = attr_vN->data_float3();
float3 *vN = (attr_vN) ? attr_vN->data_float3() : NULL;
/* count patches */
int num_patches = 0;