diff options
| author | MegaMech <inkstudios1@hotmail.com> | 2025-05-19 16:42:11 -0600 |
|---|---|---|
| committer | MegaMech <inkstudios1@hotmail.com> | 2025-05-19 16:42:11 -0600 |
| commit | 1eba8ebc17ba71435f8d91b876c35d05f5735de0 (patch) | |
| tree | cb650f8c2365f982c2162446d069e3b0a0d9b49d /src/port/interpolation/FrameInterpolation.cpp | |
| parent | c12225592a3aecc5dd3b059ebe222ed97d829cef (diff) | |
Fix interpolation camera bug
Diffstat (limited to 'src/port/interpolation/FrameInterpolation.cpp')
| -rw-r--r-- | src/port/interpolation/FrameInterpolation.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/port/interpolation/FrameInterpolation.cpp b/src/port/interpolation/FrameInterpolation.cpp index 4da081ac1..767b83316 100644 --- a/src/port/interpolation/FrameInterpolation.cpp +++ b/src/port/interpolation/FrameInterpolation.cpp @@ -550,7 +550,7 @@ unordered_map<Mtx*, MtxF> FrameInterpolation_Interpolate(float step) { bool camera_interpolation = true; void FrameInterpolation_ShouldInterpolateFrame(bool shouldInterpolate) { - // camera_interpolation = shouldInterpolate; + camera_interpolation = shouldInterpolate; is_recording = shouldInterpolate; } @@ -559,12 +559,12 @@ void FrameInterpolation_StartRecord(void) { current_recording = {}; current_path.clear(); current_path.push_back(¤t_recording.root_path); - // if (!camera_interpolation) { - // // default to interpolating - // camera_interpolation = true; - // is_recording = false; - // return; - // } + if (!camera_interpolation) { + // default to interpolating + camera_interpolation = true; + is_recording = false; + return; + } if (GameEngine::GetInterpolationFPS() != 20) { is_recording = true; } |
