From 9b2dd838ea64ffefd77f24b00c77a757ed304526 Mon Sep 17 00:00:00 2001 From: parax0 Date: Sat, 28 Nov 2015 11:51:06 -0700 Subject: [PATCH] Don't render damageable trigger selection in game mode --- Scene/script/CDamageableTriggerExtra.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scene/script/CDamageableTriggerExtra.cpp b/Scene/script/CDamageableTriggerExtra.cpp index 7e86dc16..b26ff5ba 100644 --- a/Scene/script/CDamageableTriggerExtra.cpp +++ b/Scene/script/CDamageableTriggerExtra.cpp @@ -194,7 +194,7 @@ void CDamageableTriggerExtra::AddToRenderer(CRenderer *pRenderer, const SViewInf { if (ViewInfo.ViewFrustum.BoxInFrustum(AABox())) pRenderer->AddTransparentMesh(this, -1, AABox(), eDrawMesh); - if (mpParent->IsSelected()) + if (mpParent->IsSelected() && !ViewInfo.GameMode) pRenderer->AddOpaqueMesh(this, -1, AABox(), eDrawSelection); } }