From 9d9d2fb314660fdbfe6526ad5a16142dd545e556 Mon Sep 17 00:00:00 2001 From: Kurt Thiemann Date: Mon, 20 Mar 2023 17:36:11 +0100 Subject: [PATCH] don't skip rerendering faces if interpolation is enabled in animation --- src/Model/Model.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Model/Model.php b/src/Model/Model.php index 8596dfc..d1d4adb 100644 --- a/src/Model/Model.php +++ b/src/Model/Model.php @@ -119,7 +119,9 @@ public function render(int $width, int $height): Imagick } foreach ($faces as $i => $face) { - if($lastAnimationFrames !== null && $lastAnimationFrames[$i] === $frames[$i]) { + if($lastAnimationFrames !== null && + !$face->getFaceInfo()->getTexture()->getMeta()->isInterpolated() && + $lastAnimationFrames[$i] === $frames[$i]) { continue; } $res = $face->getPerspectiveImage($width, $height, $tick);