Fix T76916: Cycles missing deform motion blur for shape key + subdiv modifier

This commit is contained in:
Brecht Van Lommel 2020-05-20 17:54:47 +02:00
parent 93b5682444
commit e4e31e4f14
Notes: blender-bot 2023-02-14 02:13:08 +01:00
Referenced by issue #76916, No deformation motion blur with subdivision modifier
1 changed files with 8 additions and 0 deletions

View File

@ -3876,6 +3876,10 @@ bool BKE_object_is_child_recursive(const Object *ob_parent, const Object *ob_chi
* cases false positives are hard to avoid (shape keys for example) */
int BKE_object_is_modified(Scene *scene, Object *ob)
{
/* Always test on original object since evaluated object may no longer
* have shape keys or modifiers that were used to evaluate it. */
ob = DEG_get_original_object(ob);
int flag = 0;
if (BKE_key_from_object(ob)) {
@ -4006,6 +4010,10 @@ static bool modifiers_has_animation_check(const Object *ob)
* and we can still if there was actual deformation afterwards */
int BKE_object_is_deform_modified(Scene *scene, Object *ob)
{
/* Always test on original object since evaluated object may no longer
* have shape keys or modifiers that were used to evaluate it. */
ob = DEG_get_original_object(ob);
ModifierData *md;
VirtualModifierData virtualModifierData;
int flag = 0;