made animation timeline buttons clickable. when paused, clicking the buttons will take you to that point in the animation.

This commit is contained in:
Luis C.M committed 2023-11-09 23:07:52 -06:00
1 parent f8d96a8c6c
commit f35b5a32ac
3 files changed
+62 -14

No files matched your search

@@ -221,4 +221,19 @@ public class FramePart implements IFramePart {
}
}
}
@SideOnly(Side.CLIENT)
public void setPausedValues() {
this.partialRotationTick = ClientEventHandler.partialRenderTick;
this.partialPivotTick = ClientEventHandler.partialRenderTick;
this.prevPivots[0] = this.pivot[0];
this.prevPivots[1] = this.pivot[1];
this.prevPivots[2] = this.pivot[2];
float pi = (float) Math.PI / 180;
this.prevRotations[0] = this.rotation[0] * pi;
this.prevRotations[1] = this.rotation[1] * pi;
this.prevRotations[2] = this.rotation[2] * pi;
}
}