diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-05-04 18:14:14 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-05-04 18:14:43 +0300 |
commit | 875df1e2b9a92eb49269a9040528bce1af1018b1 (patch) | |
tree | 6a57f3f3bf45a1e5e70648e034f1ee0970553ebc /intern | |
parent | ddd6be1834692c63353e47ab8d94e8dfc576c906 (diff) |
Cycles: Fix hair minimal size doesn't work on GPU and SSE2 only CPUs
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/bvh/bvh_build.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/cycles/bvh/bvh_build.cpp b/intern/cycles/bvh/bvh_build.cpp index bba89a8f35c..63edbc9998f 100644 --- a/intern/cycles/bvh/bvh_build.cpp +++ b/intern/cycles/bvh/bvh_build.cpp @@ -629,6 +629,9 @@ BVHNode* BVHBuild::create_leaf_node(const BVHRange& range, bounds[type_index].grow(ref.bounds()); visibility[type_index] |= objects[ref.prim_object()]->visibility; + if (ref.prim_type() & PRIMITIVE_ALL_CURVE) { + visibility[type_index] |= PATH_RAY_CURVE; + } ++num_new_prims; } else { |