Fix/workaround geometry nodes not working with deformation motion blur

Always assume geometry nodes produce potentially animated meshes or point
clouds. In general it is hard to check if geometry nodes are animated, and
for modifiers this was already weak.

The better solution will likely involving checking which geometry was
modified by the depsgraph on frame change, to replace the current mechanism
of manually checking for certain types of modifiers and animation.
This commit is contained in:
Brecht Van Lommel 2020-12-21 19:17:10 +01:00
parent 36b6ea6cb1
commit 1e2c028a3a
Notes: blender-bot 2023-02-14 02:08:37 +01:00
Referenced by issue #83638, Wrong motion blur with mirror modifier
1 changed files with 7 additions and 0 deletions

View File

@ -4797,6 +4797,13 @@ static bool constructive_modifier_is_deform_modified(ModifierData *md)
*/
return true;
}
if (md->type == eModifierType_Nodes) {
/* Not ideal for performance to always assume this is animated,
* but hard to detect in general. The better long term solution is likely
* to replace BKE_object_is_deform_modified by a test if the object was
* modified by the depsgraph when changing frames. */
return true;
}
return false;
}