From 8ad6da55015b88787de5b9f2e1d7ab5fa9e0dd83 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 21 Jun 2020 02:32:12 -0400 Subject: [PATCH] CSceneNode: Remove dead conditionals in DrawModelParts() The condition is alreadt checked against in the if statement, so this condition will never be true. --- src/Core/Scene/CSceneNode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/Scene/CSceneNode.cpp b/src/Core/Scene/CSceneNode.cpp index 1af89403..e06c17e8 100644 --- a/src/Core/Scene/CSceneNode.cpp +++ b/src/Core/Scene/CSceneNode.cpp @@ -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++) {