Skip to content

Commit e08ce43

Browse files
committed
add to more functions
1 parent cc93739 commit e08ce43

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

soh/src/code/z_skelanime.c

+12
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ void SkelAnime_DrawLimbLod(PlayState* play, s32 limbIndex, void** skeleton, Vec3
2828
Vec3f pos;
2929
Vec3s rot;
3030

31+
if (CVarGetInteger("gDisableLOD", 0)) {
32+
lod = 0;
33+
}
34+
3135
OPEN_DISPS(play->state.gfxCtx);
3236

3337
Matrix_Push();
@@ -135,6 +139,10 @@ void SkelAnime_DrawFlexLimbLod(PlayState* play, s32 limbIndex, void** skeleton,
135139
Vec3f pos;
136140
Vec3s rot;
137141

142+
if (CVarGetInteger("gDisableLOD", 0)) {
143+
lod = 0;
144+
}
145+
138146
Matrix_Push();
139147

140148
limb = (LodLimb*)SEGMENTED_TO_VIRTUAL(skeleton[limbIndex]);
@@ -195,6 +203,10 @@ void SkelAnime_DrawFlexLod(PlayState* play, void** skeleton, Vec3s* jointTable,
195203
Vec3s rot;
196204
Mtx* mtx = Graph_Alloc(play->state.gfxCtx, dListCount * sizeof(Mtx));
197205

206+
if (CVarGetInteger("gDisableLOD", 0)) {
207+
lod = 0;
208+
}
209+
198210
if (skeleton == NULL) {
199211
osSyncPrintf(VT_FGCOL(RED));
200212
osSyncPrintf("Si2_Lod_draw_SV():skelがNULLです。\n"); // "skel is NULL."

0 commit comments

Comments
 (0)