[Bf-blender-cvs] [ac1ffa24202] temp-pbvh-split: Fix T97908: Cycles missing motion from on pointcloud generated by geometry nodes

Brecht Van Lommel noreply at git.blender.org
Fri Jun 3 01:16:27 CEST 2022


Commit: ac1ffa242029966bb8611fb0319808850193c04b
Author: Brecht Van Lommel
Date:   Tue May 10 20:38:31 2022 +0200
Branches: temp-pbvh-split
https://developer.blender.org/rBac1ffa242029966bb8611fb0319808850193c04b

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.

===================================================================

M	intern/cycles/blender/util.h

===================================================================

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;
 }



More information about the Bf-blender-cvs mailing list