Fixes logic that checks if a postFX was enabled so the PostFX Editor works properly

Corrected the enabled variable hook-in for the SSAOPostFX
This commit is contained in:
Areloch 2020-12-07 00:00:53 -06:00
parent d18721d78e
commit d25e9d64dc
2 changed files with 7 additions and 3 deletions

View file

@ -52,7 +52,7 @@ function PostFXEditor::refresh(%this)
{
%postEffect = PostFXManager.getKey(%i);
if(%postEffect.isEnabled)
if(%postEffect.isEnabled())
PostEffectEditorList.addRow( %i, %postEffect.getName() );
}
}
@ -143,7 +143,7 @@ function PostFXEditorNewPFXWindow::showDialog(%this)
{
%postEffect = PostFXManager.getKey(%i);
if(!%postEffect.isEnabled)
if(!%postEffect.isEnabled())
PostFXEditorNewPFXList.addRow( %i, %postEffect.getName() );
}
}