From 25407bf2cad68e7f96aacea470c69f9693a4198e Mon Sep 17 00:00:00 2001 From: Darryl Pogue Date: Sun, 10 Feb 2013 00:28:06 -0800 Subject: [PATCH] Fix logic error. --- Sources/Plasma/FeatureLib/pfConsole/pfConsoleCommands.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/Plasma/FeatureLib/pfConsole/pfConsoleCommands.cpp b/Sources/Plasma/FeatureLib/pfConsole/pfConsoleCommands.cpp index 4f749eba..e38d966f 100644 --- a/Sources/Plasma/FeatureLib/pfConsole/pfConsoleCommands.cpp +++ b/Sources/Plasma/FeatureLib/pfConsole/pfConsoleCommands.cpp @@ -2004,8 +2004,8 @@ PF_CONSOLE_CMD( Graphics_Show, Normal, "", "Toggle normal geometry visible") { static bool on = true; - if (!on) { - on = !on; + on = !on; + if (on) { pfConsole::GetPipeline()->SetDrawableTypeMask(pfConsole::GetPipeline()->GetDrawableTypeMask() | plDrawableSpans::kNormal); } else { pfConsole::GetPipeline()->SetDrawableTypeMask(pfConsole::GetPipeline()->GetDrawableTypeMask() & ~plDrawableSpans::kNormal); @@ -2021,8 +2021,8 @@ PF_CONSOLE_CMD( Graphics_Show, NormalOnly, "", "Toggle only normal geometry visi static bool on = false; static uint32_t oldMask = plDrawableSpans::kNormal; - if (!on) { - on = !on; + on = !on; + if (on) { oldMask = pfConsole::GetPipeline()->GetDrawableTypeMask(); pfConsole::GetPipeline()->SetDrawableTypeMask(plDrawableSpans::kNormal); } else {