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