Fix T37003, Fix T37859: smoke modifier taking deforming modifiers into account

in some cases.

The smoke modifier now ignores the modifier evaluation for generated texture
coordinates, which would previously cause the undeformed mesh to be cached for
flow objects. Dynamic paint has a similar exception, and other physics systems
avoid it by not being a constructive modifier.
This commit is contained in:
Brecht Van Lommel 2013-12-19 18:25:14 +01:00
parent 2746f7ef28
commit 19c0c7992a
Notes: blender-bot 2023-02-14 11:45:00 +01:00
Referenced by issue #37859, Smoke simulation does not always reflect armature poses
Referenced by issue #37003, Fire/Smoke Modifier dont responds to mesh deforms
1 changed files with 4 additions and 1 deletions

View File

@ -101,10 +101,13 @@ static CustomDataMask requiredDataMask(Object *UNUSED(ob), ModifierData *md)
static DerivedMesh *applyModifier(ModifierData *md, Object *ob,
DerivedMesh *dm,
ModifierApplyFlag UNUSED(flag))
ModifierApplyFlag flag)
{
SmokeModifierData *smd = (SmokeModifierData *) md;
if(flag & MOD_APPLY_ORCO)
return dm;
return smokeModifier_do(smd, md->scene, ob, dm);
}