diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-04-07 16:07:25 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-04-07 16:08:00 +0300 |
commit | fd08570665ff02dfb4d80f7943d7ac4338743fbc (patch) | |
tree | 62640b8a6eb1769ab24712e5a1abd18c4fca72d6 /intern/cycles/blender | |
parent | ddb42076c9d9c9e5b606764e283d09d4df78fb59 (diff) |
Cycles: Fix access of NULL pointer as array
Was confusing guarded allocator for some reason.
Diffstat (limited to 'intern/cycles/blender')
-rw-r--r-- | intern/cycles/blender/blender_mesh.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/cycles/blender/blender_mesh.cpp b/intern/cycles/blender/blender_mesh.cpp index 304b1992032..54571b1fea1 100644 --- a/intern/cycles/blender/blender_mesh.cpp +++ b/intern/cycles/blender/blender_mesh.cpp @@ -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. */ |