Skip to content

Commit

Permalink
don't skip rerendering faces if interpolation is enabled in animation
Browse files Browse the repository at this point in the history
  • Loading branch information
KurtThiemann committed Mar 20, 2023
1 parent cc2d4fd commit 9d9d2fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Model/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9d9d2fb

Please sign in to comment.