diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-04-04 13:57:36 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-04-04 13:57:36 +0300 |
commit | ef22b837e8e22fd1d6f566edeef9d090032e0996 (patch) | |
tree | 11c2d46d8d549097dc96f1558bc8984884fe7795 /intern/cycles | |
parent | 39585e1abc13181938568bdc905cff1bee267775 (diff) | |
parent | 0c7ec5896638480c8ed0a67d80026b83e4d12526 (diff) |
Merge branch 'master' into blender2.8
Diffstat (limited to 'intern/cycles')
-rw-r--r-- | intern/cycles/render/mesh_subdivision.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/render/mesh_subdivision.cpp b/intern/cycles/render/mesh_subdivision.cpp index ea71f71b655..9dd81eb6700 100644 --- a/intern/cycles/render/mesh_subdivision.cpp +++ b/intern/cycles/render/mesh_subdivision.cpp @@ -204,7 +204,7 @@ public: src = dest; } - if(num_refiner_verts) { + if(num_local_points) { patch_table->ComputeLocalPointValues(&verts[0], &verts[num_refiner_verts]); } @@ -238,7 +238,7 @@ public: src = dest; } - if(num_refiner_verts) { + if(num_local_points) { if(attr.same_storage(attr.type, TypeDesc::TypeFloat)) { patch_table->ComputeLocalPointValues((OsdValue<float>*)&attr.buffer[0], (OsdValue<float>*)&attr.buffer[num_refiner_verts * attr.data_sizeof()]); |