mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-16 16:37:02 +00:00
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:
@@ -229,8 +229,8 @@ void CSceneNode::DrawModelParts(CModel *pModel, FRenderOptions Options, size_t M
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
const bool DrawOpaque = (RenderCommand == ERenderCommand::DrawMesh || RenderCommand == ERenderCommand::DrawOpaqueParts);
|
const bool DrawOpaque = RenderCommand == ERenderCommand::DrawOpaqueParts;
|
||||||
const bool DrawTransparent = (RenderCommand == ERenderCommand::DrawMesh || RenderCommand == ERenderCommand::DrawTransparentParts);
|
const bool DrawTransparent = RenderCommand == ERenderCommand::DrawTransparentParts;
|
||||||
|
|
||||||
for (size_t iSurf = 0; iSurf < pModel->GetSurfaceCount(); iSurf++)
|
for (size_t iSurf = 0; iSurf < pModel->GetSurfaceCount(); iSurf++)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user