CSceneNode: Remove dead conditionals in DrawModelParts()

The condition is alreadt checked against in the if statement, so this
condition will never be true.
This commit is contained in:
Lioncash 2020-06-21 02:32:12 -04:00
parent c11ec0a6fd
commit 8ad6da5501

View File

@ -229,8 +229,8 @@ void CSceneNode::DrawModelParts(CModel *pModel, FRenderOptions Options, size_t M
}
else
{
const bool DrawOpaque = (RenderCommand == ERenderCommand::DrawMesh || RenderCommand == ERenderCommand::DrawOpaqueParts);
const bool DrawTransparent = (RenderCommand == ERenderCommand::DrawMesh || RenderCommand == ERenderCommand::DrawTransparentParts);
const bool DrawOpaque = RenderCommand == ERenderCommand::DrawOpaqueParts;
const bool DrawTransparent = RenderCommand == ERenderCommand::DrawTransparentParts;
for (size_t iSurf = 0; iSurf < pModel->GetSurfaceCount(); iSurf++)
{