Skip to content

Commit d89378b

Browse files
committed
Small Interpolation Improvement
1 parent af3b751 commit d89378b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/engine/tw-interpolate.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@ const interpolate = (runtime, time) => {
5151
}
5252

5353
// Don't waste time interpolating sprites that are hidden.
54-
if (!target.visible) {
54+
if (
55+
!target.visible ||
56+
target.effects.ghost === 100 &&
57+
interpolationData.ghost === 100
58+
) {
5559
continue;
5660
}
5761

0 commit comments

Comments
 (0)