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:
authorBrecht Van Lommel <brecht@blender.org>2020-12-21 21:17:10 +0300
committerBrecht Van Lommel <brecht@blender.org>2020-12-21 21:19:59 +0300
commit1e2c028a3a94f513a5882e8b5814754d4fa86eb2 (patch)
treebc108ea95d24344d6b69125a51b4c53ee5f29228 /source/blender/blenkernel/intern/object.c
parent36b6ea6cb10751dca752bbef7a87dfbf0aba4de8 (diff)
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.
Diffstat (limited to 'source/blender/blenkernel/intern/object.c')
-rw-r--r--source/blender/blenkernel/intern/object.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c
index 8764232e56b..2fea868bd34 100644
--- a/source/blender/blenkernel/intern/object.c
+++ b/source/blender/blenkernel/intern/object.c
@@ -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;
}