mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-07-13 08:35:58 +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:
parent
c11ec0a6fd
commit
8ad6da5501
@ -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++)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user