2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-21 04:19:11 +00:00

CDrone: Check for normal model in PreRender

This commit is contained in:
2020-09-13 20:07:24 -04:00
parent 8a4cda9d98
commit 3e8369d24d
2 changed files with 2 additions and 1 deletions

View File

@@ -288,7 +288,7 @@ void CDrone::AddToRenderer(const zeus::CFrustum& frustum, CStateManager& mgr) {
void CDrone::PreRender(CStateManager& mgr, const zeus::CFrustum& frustum) {
CPatterned::PreRender(mgr, frustum);
if (x3fc_flavor == EFlavorType::One) {
if (HasModelData() && GetModelData()->HasAnimData()) {
if (HasModelData() && GetModelData()->HasAnimData() && GetModelData()->HasNormalModel()) {
if (GetModelAlphau8(mgr) == 0)
GetModelData()->GetAnimationData()->BuildPose();
}