Fix T49501: Animations imported via alembic render with wrong or no motion blur

This commit is contained in:
Sergey Sharybin 2016-10-05 12:37:09 +02:00
parent b9c996e16b
commit e65e5045de
1 changed files with 8 additions and 0 deletions

View File

@ -3212,6 +3212,14 @@ static bool constructive_modifier_is_deform_modified(ModifierData *md)
ScrewModifierData *smd = (ScrewModifierData *)md;
return smd->ob_axis != NULL && object_moves_in_time(smd->ob_axis);
}
else if (md->type == eModifierType_MeshSequenceCache) {
/* NOTE: Not ideal because it's unknown whether topology changes or not.
* This will be detected later, so by assuming it's only deformation
* going on here we allow to bake deform-only mesh to Alembic and have
* proper motion blur after that.
*/
return true;
}
return false;
}