diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2020-02-09 01:19:59 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2020-06-04 15:37:20 +0300 |
commit | 41866070d3154dcdfc7ff38b6c472f2f6b591c13 (patch) | |
tree | 38deace6c6da8623d13fac6b589e56470f27cd46 /intern/cycles/bvh | |
parent | 953c232db31f1a76f99ceb43119681ce0df1ab17 (diff) |
Cleanup: remove unused flag
Diffstat (limited to 'intern/cycles/bvh')
-rw-r--r-- | intern/cycles/bvh/bvh.cpp | 5 | ||||
-rw-r--r-- | intern/cycles/bvh/bvh8.cpp | 2 | ||||
-rw-r--r-- | intern/cycles/bvh/bvh_build.cpp | 3 |
3 files changed, 0 insertions, 10 deletions
diff --git a/intern/cycles/bvh/bvh.cpp b/intern/cycles/bvh/bvh.cpp index e6502a40313..0313bcd68b0 100644 --- a/intern/cycles/bvh/bvh.cpp +++ b/intern/cycles/bvh/bvh.cpp @@ -229,8 +229,6 @@ void BVH::refit_primitives(int start, int end, BoundBox &bbox, uint &visibility) curve.bounds_grow(k, &hair->curve_keys[0], &hair->curve_radius[0], bbox); - visibility |= PATH_RAY_CURVE; - /* Motion curves. */ if (hair->use_motion_blur) { Attribute *attr = hair->attributes.find(ATTR_STD_MOTION_VERTEX_POSITION); @@ -327,9 +325,6 @@ void BVH::pack_primitives() pack.prim_tri_index[i] = -1; } pack.prim_visibility[i] = ob->visibility_for_tracing(); - if (pack.prim_type[i] & PRIMITIVE_ALL_CURVE) { - pack.prim_visibility[i] |= PATH_RAY_CURVE; - } } else { pack.prim_tri_index[i] = -1; diff --git a/intern/cycles/bvh/bvh8.cpp b/intern/cycles/bvh/bvh8.cpp index 342dd9e85a5..b805865b2c8 100644 --- a/intern/cycles/bvh/bvh8.cpp +++ b/intern/cycles/bvh/bvh8.cpp @@ -439,8 +439,6 @@ void BVH8::refit_node(int idx, bool leaf, BoundBox &bbox, uint &visibility) curve.bounds_grow(k, &hair->curve_keys[0], &hair->curve_radius[0], bbox); - visibility |= PATH_RAY_CURVE; - /* Motion curves. */ if (hair->use_motion_blur) { Attribute *attr = hair->attributes.find(ATTR_STD_MOTION_VERTEX_POSITION); diff --git a/intern/cycles/bvh/bvh_build.cpp b/intern/cycles/bvh/bvh_build.cpp index db156219f09..814b5ced5d2 100644 --- a/intern/cycles/bvh/bvh_build.cpp +++ b/intern/cycles/bvh/bvh_build.cpp @@ -885,9 +885,6 @@ BVHNode *BVHBuild::create_leaf_node(const BVHRange &range, const vector<BVHRefer bounds[type_index].grow(ref.bounds()); visibility[type_index] |= objects[ref.prim_object()]->visibility_for_tracing(); - if (ref.prim_type() & PRIMITIVE_ALL_CURVE) { - visibility[type_index] |= PATH_RAY_CURVE; - } ++num_new_prims; } else { |