diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-12-08 21:49:34 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-12-08 21:49:34 +0300 |
commit | 761111efb8e40fa030cb48761df8c066d0e43ae5 (patch) | |
tree | 783407ed4bf4e129dda71a52fcf493c5f6435c97 /intern/cycles | |
parent | 52c834983f68974d554f11a144fef6f3a4acac82 (diff) |
Fix T71878: Cycles crash with adaptive subdivision and empty mesh
Diffstat (limited to 'intern/cycles')
-rw-r--r-- | intern/cycles/render/mesh_subdivision.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/render/mesh_subdivision.cpp b/intern/cycles/render/mesh_subdivision.cpp index a5a35fc049e..40dd658eadd 100644 --- a/intern/cycles/render/mesh_subdivision.cpp +++ b/intern/cycles/render/mesh_subdivision.cpp @@ -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; |