Don't render damageable trigger selection in game mode
This commit is contained in:
parent
9f7e304e41
commit
9b2dd838ea
|
@ -194,7 +194,7 @@ void CDamageableTriggerExtra::AddToRenderer(CRenderer *pRenderer, const SViewInf
|
||||||
{
|
{
|
||||||
if (ViewInfo.ViewFrustum.BoxInFrustum(AABox()))
|
if (ViewInfo.ViewFrustum.BoxInFrustum(AABox()))
|
||||||
pRenderer->AddTransparentMesh(this, -1, AABox(), eDrawMesh);
|
pRenderer->AddTransparentMesh(this, -1, AABox(), eDrawMesh);
|
||||||
if (mpParent->IsSelected())
|
if (mpParent->IsSelected() && !ViewInfo.GameMode)
|
||||||
pRenderer->AddOpaqueMesh(this, -1, AABox(), eDrawSelection);
|
pRenderer->AddOpaqueMesh(this, -1, AABox(), eDrawSelection);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue