[Bf-blender-cvs] [1e2c028a3a9] master: Fix/workaround geometry nodes not working with deformation motion blur

Brecht Van Lommel noreply at git.blender.org
Mon Dec 21 19:20:54 CET 2020


Commit: 1e2c028a3a94f513a5882e8b5814754d4fa86eb2
Author: Brecht Van Lommel
Date:   Mon Dec 21 19:17:10 2020 +0100
Branches: master
https://developer.blender.org/rB1e2c028a3a94f513a5882e8b5814754d4fa86eb2

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.

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

M	source/blender/blenkernel/intern/object.c

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

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



More information about the Bf-blender-cvs mailing list