fix Model glow pass doesn't draw with correct bone transform

This commit is contained in:
Chris Danford
2004-04-24 09:30:30 +00:00
parent b84859f712
commit 78a45c8158
+14
View File
@@ -576,7 +576,21 @@ void Model::DrawPrimitives()
DISPLAY->ClearAllTextures();
}
// apply mesh-specific bone (if any)
if( pMesh->nBoneIndex != -1 )
{
DISPLAY->PushMatrix();
RageMatrix &mat = m_vpBones[pMesh->nBoneIndex].mFinal;
DISPLAY->PreMultMatrix( mat );
}
DISPLAY->DrawCompiledGeometry( TempGeometry, i, m_pGeometry->m_Meshes );
if( pMesh->nBoneIndex != -1 )
{
DISPLAY->PopMatrix();
}
}
}
}