Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2020-02-09 01:26:09 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2020-02-09 01:26:09 +0300
commit01cb35cc8f787a13b2e240a38e3fd478eb76825c (patch)
tree5e5fdcfca5134a1ec614b47fd407ef87cdaa78fa /intern/cycles/bvh
parenta5a9493ffdc5c964ddd9cfc2ae344dfef3db3dc2 (diff)
Fix Cycles error with hair and spatial splits after recent changes
Diffstat (limited to 'intern/cycles/bvh')
-rw-r--r--intern/cycles/bvh/bvh_split.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/bvh/bvh_split.cpp b/intern/cycles/bvh/bvh_split.cpp
index 7e787674b74..acdca0f13ad 100644
--- a/intern/cycles/bvh/bvh_split.cpp
+++ b/intern/cycles/bvh/bvh_split.cpp
@@ -464,7 +464,7 @@ void BVHSpatialSplit::split_object_reference(
split_triangle_primitive(mesh, &object->tfm, tri_idx, dim, pos, left_bounds, right_bounds);
}
}
- else if (geom->type == Geometry::MESH) {
+ else if (geom->type == Geometry::HAIR) {
Hair *hair = static_cast<Hair *>(geom);
for (int curve_idx = 0; curve_idx < hair->num_curves(); ++curve_idx) {
Hair::Curve curve = hair->get_curve(curve_idx);