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.
This commit is contained in:
Brecht Van Lommel 2022-05-10 20:38:31 +02:00
parent dcce4a59a0
commit 81b797af66
Notes: blender-bot 2023-02-14 06:54:28 +01:00
Referenced by issue #97908, No motion blur with rendering pointcloud
1 changed files with 4 additions and 1 deletions

View File

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