Reworked ReplayProcess to get rid of own Interpolation instances (as these can be handled by the KeyframeLists)

Camera Paths are now started from the current cursor position, using Ctrl-click the path always starts from the beginning
This commit is contained in:
CrushedPixel
2015-07-25 14:11:06 +02:00
parent 3b93df30e5
commit 5427616ceb
5 changed files with 58 additions and 146 deletions

View File

@@ -165,10 +165,10 @@ public class ReplayHandler {
return currentEntity;
}
public static void startPath(RenderOptions renderOptions) {
public static void startPath(RenderOptions renderOptions, boolean fromStart) {
if(!ReplayHandler.isInPath()) {
try {
ReplayProcess.startReplayProcess(renderOptions);
ReplayProcess.startReplayProcess(renderOptions, fromStart);
} catch (ReportedException e) {
// We have to manually unwrap OOM errors as Minecraft doesn't handle them when they're wrapped
Throwable prevCause = null;