[Bf-blender-cvs] [8c3855dc6e9] master: Fix broken physics modifiers after cleanup commits

Brecht Van Lommel noreply at git.blender.org
Thu Jul 1 13:02:18 CEST 2021


Commit: 8c3855dc6e9b2f6e76953384b4aab4ea3ab987ff
Author: Brecht Van Lommel
Date:   Thu Jul 1 12:55:27 2021 +0200
Branches: master
https://developer.blender.org/rB8c3855dc6e9b2f6e76953384b4aab4ea3ab987ff

Fix broken physics modifiers after cleanup commits

4f3ec0110 and 5a64c687dd should have removed the entire conditional to skip
time depedent modifiers, rather than always enable it.

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

M	source/blender/blenkernel/intern/DerivedMesh.cc

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

diff --git a/source/blender/blenkernel/intern/DerivedMesh.cc b/source/blender/blenkernel/intern/DerivedMesh.cc
index 7063c670ee4..bc49c086532 100644
--- a/source/blender/blenkernel/intern/DerivedMesh.cc
+++ b/source/blender/blenkernel/intern/DerivedMesh.cc
@@ -1076,10 +1076,6 @@ static void mesh_calc_modifiers(struct Depsgraph *depsgraph,
         continue;
       }
 
-      if (mti->dependsOnTime && mti->dependsOnTime(md)) {
-        continue;
-      }
-
       if (mti->type == eModifierTypeType_OnlyDeform && !sculpt_dyntopo) {
         if (!deformed_verts) {
           deformed_verts = BKE_mesh_vert_coords_alloc(mesh_input, &num_deformed_verts);
@@ -1173,10 +1169,6 @@ static void mesh_calc_modifiers(struct Depsgraph *depsgraph,
       continue;
     }
 
-    if (mti->dependsOnTime && mti->dependsOnTime(md)) {
-      continue;
-    }
-
     /* Add orco mesh as layer if needed by this modifier. */
     if (mesh_final && mesh_orco && mti->requiredDataMask) {
       CustomData_MeshMasks mask = {0};



More information about the Bf-blender-cvs mailing list