Fix T88566: Mantaflow inflow with shapekeys is not working anymore

(regression)

Code was actually checking for shapekeys, but these were not detected
properly (some effects like shape keys are added as virtual modifiers
before the user created modifiers)

Now go over virtual modifiers as well.

Maniphest Tasks: T88566

Differential Revision: https://developer.blender.org/D11388
This commit is contained in:
Philipp Oeser 2021-05-25 16:27:34 +02:00
parent ff35332610
commit b813007a0f
Notes: blender-bot 2023-02-14 07:45:38 +01:00
Referenced by issue #88449, Blender LTS: Maintenance Task 2.93
Referenced by issue #88566, Mantaflow inflow with shapekeys is not working anymore (regression)
1 changed files with 2 additions and 1 deletions

View File

@ -623,7 +623,8 @@ static void clamp_bounds_in_domain(FluidDomainSettings *fds,
static bool is_static_object(Object *ob)
{
/* Check if the object has modifiers that might make the object "dynamic". */
ModifierData *md = ob->modifiers.first;
VirtualModifierData virtualModifierData;
ModifierData *md = BKE_modifiers_get_virtual_modifierlist(ob, &virtualModifierData);
for (; md; md = md->next) {
if (ELEM(md->type,
eModifierType_Cloth,