Cycles: Fix over-allocation of triangles storage for triangle primitive hair
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 26 Apr 2017 13:58:40 +0000 (15:58 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 26 Apr 2017 14:00:02 +0000 (16:00 +0200)
commitbe60e9b8c57223d102bb8b34f1dddc8c454b0ded
treee54ed00ae773658c53c728dca53f7c1e1ab7eb72
parente6954a5a7cd9439787c3b0bf04e8970962eb6315
Cycles: Fix over-allocation of triangles storage for triangle primitive hair

Was also causing some bad memory access caused by read data from non-initialized
arrays.

Repoted by bzztploink in IRC, thanks!
intern/cycles/blender/blender_curves.cpp