Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-12-08 21:49:34 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-12-08 21:49:34 +0300
commit761111efb8e40fa030cb48761df8c066d0e43ae5 (patch)
tree783407ed4bf4e129dda71a52fcf493c5f6435c97 /intern/cycles
parent52c834983f68974d554f11a144fef6f3a4acac82 (diff)
Fix T71878: Cycles crash with adaptive subdivision and empty mesh
Diffstat (limited to 'intern/cycles')
-rw-r--r--intern/cycles/render/mesh_subdivision.cpp2
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;