From 9d484b24b2c079b73851e73c33bbd358399e02e1 Mon Sep 17 00:00:00 2001 From: WilyFoxM Date: Thu, 5 Nov 2026 22:37:50 +0300 Subject: [PATCH] Take the pose an animation ends on from vanilla The direct pose matches vanilla only to float rounding, which moved two edge pixels of a resting model in the full native suite. Use it only while a part interpolates; the resting pose comes from vanilla once and is then reused. --- .../drawless/performance/LiveDisplayGeometry.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/ru/wilyfox/drawless/performance/LiveDisplayGeometry.java b/src/main/java/ru/wilyfox/drawless/performance/LiveDisplayGeometry.java index 0c988f5..f612994 100644 --- a/src/main/java/ru/wilyfox/drawless/performance/LiveDisplayGeometry.java +++ b/src/main/java/ru/wilyfox/drawless/performance/LiveDisplayGeometry.java @@ -628,13 +628,18 @@ void remember(ItemDisplayEntityRenderState state, Reason reason, boolean replaya } } - /** Only the interpolated transform or the billboard changed since the vanilla pose. */ + /** + * Only the interpolated transform or the billboard changed since the vanilla pose. The pose an + * animation ends on is taken from vanilla once: the direct pose matches it only to float + * rounding, which can move an edge pixel, and the resting pose is reused until it changes. + */ boolean posable(ItemDisplayEntityRenderState state) { return poseValid && replayable && reason == Reason.READY && layers == state.item - && render == state.renderState; + && render == state.renderState + && state.interpolationProgress < 1; } private static void poseBase(Minecraft client, ItemDisplayEntityRenderState state) {