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
path: root/intern
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2022-05-10 21:38:31 +0300
committerBrecht Van Lommel <brecht@blender.org>2022-05-10 21:45:30 +0300
commit81b797af669d21fc01855f94032faa6c92a4fd9b (patch)
tree4ce7176e1fbe9b6efb2434a0038ff061bab7edd2 /intern
parentdcce4a59a05245807a4b9a50cc331ce307674981 (diff)
Fix T97908: Cycles missing motion from on pointcloud generated by geometry nodes
Assume geometry is always potentially animated, since we can't use our heuristic to detect if the object is potentially animated by looking at modifiers on the object. The main original reason for this check was to avoid evaluating subdivision surfaces for many static objects, which is not happening here anyway.
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/blender/util.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/intern/cycles/blender/util.h b/intern/cycles/blender/util.h
index eead6cec08c..49cecb6d0f3 100644
--- a/intern/cycles/blender/util.h
+++ b/intern/cycles/blender/util.h
@@ -262,8 +262,11 @@ static inline bool BKE_object_is_modified(BL::Object &self, BL::Scene &scene, bo
static inline bool BKE_object_is_deform_modified(BObjectInfo &self, BL::Scene &scene, bool preview)
{
if (!self.is_real_object_data()) {
- return false;
+ /* Comes from geometry nodes, can't use heuristic to guess if it's animated. */
+ return true;
}
+
+ /* Use heuristic to quickly check if object is potentially animated. */
return self.real_object.is_deform_modified(scene, (preview) ? (1 << 0) : (1 << 1)) ? true :
false;
}