diff options
| author | Varuuna <medumee@gmail.com> | 2025-09-26 18:14:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-26 10:14:45 -0600 |
| commit | 72b5773d4d76385e330a62c100805fad2df1916e (patch) | |
| tree | 4f3498171f6985916c34b110778f2f27658d5120 /src/port | |
| parent | dbcf1acd2fa05f1303d88a8267566cb4f4fdb119 (diff) | |
Replace FrameInterpolation Pop/Push with RecordOpen/CloseChild (#542)
* Replaced Pop/Push for Yoshi Egg and Mario Sign actors
* Removed comments
* applied suggestions
---------
Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
Diffstat (limited to 'src/port')
| -rw-r--r-- | src/port/interpolation/FrameInterpolation.cpp | 26 | ||||
| -rw-r--r-- | src/port/interpolation/FrameInterpolation.h | 4 |
2 files changed, 15 insertions, 15 deletions
diff --git a/src/port/interpolation/FrameInterpolation.cpp b/src/port/interpolation/FrameInterpolation.cpp index fdd01ff82..c13e0a5a1 100644 --- a/src/port/interpolation/FrameInterpolation.cpp +++ b/src/port/interpolation/FrameInterpolation.cpp @@ -686,13 +686,13 @@ void FrameInterpolation_RecordActorPosRotMatrix(void) { next_is_actor_pos_rot_matrix = true; } -void FrameInterpolation_RecordMatrixPush(Mat4* matrix) { - if (!check_if_recording()) { - return; - } - - append(Op::MatrixPush).matrix_ptr = { (Mat4**) matrix }; -} +//void FrameInterpolation_RecordMatrixPush(Mat4* matrix) { +// if (!check_if_recording()) { +// return; +// } +// +// append(Op::MatrixPush).matrix_ptr = { (Mat4**) matrix }; +//} void FrameInterpolation_RecordMarker(const char* file, int line) { if (!check_if_recording()) { @@ -702,12 +702,12 @@ void FrameInterpolation_RecordMarker(const char* file, int line) { append(Op::Marker).marker = { file, line }; } -void FrameInterpolation_RecordMatrixPop(Mat4* matrix) { - if (!check_if_recording()) { - return; - } - append(Op::MatrixPop).matrix_ptr = { (Mat4**) matrix }; -} +//void FrameInterpolation_RecordMatrixPop(Mat4* matrix) { +// if (!check_if_recording()) { +// return; +// } +// append(Op::MatrixPop).matrix_ptr = { (Mat4**) matrix }; +//} void FrameInterpolation_RecordMatrixPut(MtxF* src) { if (!check_if_recording()) { diff --git a/src/port/interpolation/FrameInterpolation.h b/src/port/interpolation/FrameInterpolation.h index 35bf5867d..51045a1a9 100644 --- a/src/port/interpolation/FrameInterpolation.h +++ b/src/port/interpolation/FrameInterpolation.h @@ -52,9 +52,9 @@ void FrameInterpolation_RecordMatrixPosRotScaleXY(Mat4* matrix, s32 x, s32 y, u1 void FrameInterpolation_Record_SetTextMatrix(Mat4* matrix, f32 x, f32 y, f32 arg3, f32 arg4); -void FrameInterpolation_RecordMatrixPush(Mat4* matrix); +//void FrameInterpolation_RecordMatrixPush(Mat4* matrix); -void FrameInterpolation_RecordMatrixPop(Mat4* matrix); +//void FrameInterpolation_RecordMatrixPop(Mat4* matrix); void FrameInterpolation_RecordMatrixMult(Mat4* matrix, MtxF* mf, u8 mode); |
