[Bf-blender-cvs] [875df1e] master: Cycles: Fix hair minimal size doesn't work on GPU and SSE2 only CPUs
Sergey Sharybin
noreply at git.blender.org
Wed May 4 17:14:37 CEST 2016
Commit: 875df1e2b9a92eb49269a9040528bce1af1018b1
Author: Sergey Sharybin
Date: Wed May 4 17:14:14 2016 +0200
Branches: master
https://developer.blender.org/rB875df1e2b9a92eb49269a9040528bce1af1018b1
Cycles: Fix hair minimal size doesn't work on GPU and SSE2 only CPUs
===================================================================
M intern/cycles/bvh/bvh_build.cpp
===================================================================
diff --git a/intern/cycles/bvh/bvh_build.cpp b/intern/cycles/bvh/bvh_build.cpp
index bba89a8..63edbc9 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 {
More information about the Bf-blender-cvs
mailing list