From 6ee6d7c717ef0303f871f76f3d25432739c9727a Mon Sep 17 00:00:00 2001 From: AzaezelX Date: Tue, 10 Nov 2020 03:07:40 -0600 Subject: [PATCH] Field PostEffect::isEnabled -> enabled followup --- Templates/BaseGame/game/core/gui/scripts/canvas.cs | 2 +- .../BaseGame/game/core/lighting/scripts/basicLighting_Init.cs | 2 +- Templates/BaseGame/game/core/postFX/scripts/postFxManager.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Templates/BaseGame/game/core/gui/scripts/canvas.cs b/Templates/BaseGame/game/core/gui/scripts/canvas.cs index 55fa1735a..fae68b602 100644 --- a/Templates/BaseGame/game/core/gui/scripts/canvas.cs +++ b/Templates/BaseGame/game/core/gui/scripts/canvas.cs @@ -133,7 +133,7 @@ function configureCanvas() // It's formatted as AATypexAALevel // So, FXAAx4 or MLAAx2 if ( isObject( FXAA_PostEffect ) ) - FXAA_PostEffect.isEnabled = ( %aa > 0 ) ? true : false; + FXAA_PostEffect.Enabled = ( %aa > 0 ) ? true : false; } function GuiCanvas::modeStrToPrefs(%this, %modeStr) diff --git a/Templates/BaseGame/game/core/lighting/scripts/basicLighting_Init.cs b/Templates/BaseGame/game/core/lighting/scripts/basicLighting_Init.cs index 46dc45509..ef50d670e 100644 --- a/Templates/BaseGame/game/core/lighting/scripts/basicLighting_Init.cs +++ b/Templates/BaseGame/game/core/lighting/scripts/basicLighting_Init.cs @@ -64,7 +64,7 @@ singleton CustomMaterial( BL_ProjectedShadowMaterial ) function onActivateBasicLM() { // If HDR is enabled... enable the special format token. - if ( HDRPostFx.isEnabled ) + if ( HDRPostFx.Enabled ) AL_FormatToken.enable(); // Create render pass for projected shadow. diff --git a/Templates/BaseGame/game/core/postFX/scripts/postFxManager.cs b/Templates/BaseGame/game/core/postFX/scripts/postFxManager.cs index 61fcf93ff..f7f5dad59 100644 --- a/Templates/BaseGame/game/core/postFX/scripts/postFxManager.cs +++ b/Templates/BaseGame/game/core/postFX/scripts/postFxManager.cs @@ -122,7 +122,7 @@ function PostFXManager::savePresetHandler( %filename ) { %postEffect = PostFXManager.getKey(%i); - if(isObject(%postEffect) && %postEffect.isEnabled && %postEffect.isMethod("savePresetSettings")) + if(isObject(%postEffect) && %postEffect.Enabled && %postEffect.isMethod("savePresetSettings")) { %postEffect.savePresetSettings(); }