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:
authorKévin Dietrich <kevin.dietrich@mailoo.org>2021-05-10 19:23:32 +0300
committerKévin Dietrich <kevin.dietrich@mailoo.org>2021-05-14 03:40:43 +0300
commitfce795415ade673dfbe4b176113c09a925150c71 (patch)
tree51f8a0cd9be5b2e108d4ad83812771f234467ad7 /intern/cycles/render/hair.h
parent37570a73170e6cddc32ed0523b626bf0857cf068 (diff)
Fix T87929: Cycles, missing update when visibility is modified
This issue originates from a missing BVH packing for visibility data when it is modified. To fix this, this adds update flags to the managers to carry the modified visibility information from the Objects' modified flag to the GeometryManager. Another set of flags is added to determine which data need to be packed: geometry, vertices, or visibility. Those flags are then used when packing the primivites. Reviewed By: brecht Maniphest Tasks: T87929 Differential Revision: https://developer.blender.org/D11219
Diffstat (limited to 'intern/cycles/render/hair.h')
-rw-r--r--intern/cycles/render/hair.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/render/hair.h b/intern/cycles/render/hair.h
index 4b949f984e5..9c553624077 100644
--- a/intern/cycles/render/hair.h
+++ b/intern/cycles/render/hair.h
@@ -146,7 +146,7 @@ class Hair : public Geometry {
/* BVH */
void pack_curves(Scene *scene, float4 *curve_key_co, float4 *curve_data, size_t curvekey_offset);
- void pack_primitives(PackedBVH *pack, int object, uint visibility, bool pack_all) override;
+ void pack_primitives(PackedBVH *pack, int object, uint visibility, PackFlags pack_flags) override;
};
CCL_NAMESPACE_END