Cleanup code style inconsistency in last commits.
This commit is contained in:
@@ -631,7 +631,7 @@ 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) {
|
||||
if(ref.prim_type() & PRIMITIVE_ALL_CURVE) {
|
||||
visibility[type_index] |= PATH_RAY_CURVE;
|
||||
}
|
||||
++num_new_prims;
|
||||
|
@@ -125,7 +125,7 @@ static void bvh_reference_sort_threaded(TaskPool *task_pool,
|
||||
if(compare.compare(data[left], data[right]) > 0) {
|
||||
swap(data[left], data[right]);
|
||||
}
|
||||
if (compare.compare(data[center], data[right]) > 0) {
|
||||
if(compare.compare(data[center], data[right]) > 0) {
|
||||
swap(data[center], data[right]);
|
||||
}
|
||||
swap(data[center], data[right - 1]);
|
||||
|
Reference in New Issue
Block a user