1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-29 22:20:33 +00:00

Merge branch 'cherry-pick-31f0ef45d2bb53e0969962f23eb29350465993dd' into 'master'

Show a message if player attempts to access postprocessor hud when postprocessing is disabled.

See merge request OpenMW/openmw!2306
This commit is contained in:
psi29a 2022-08-21 20:13:13 +00:00
commit 0889635dc7

View File

@ -2068,7 +2068,10 @@ namespace MWGui
void WindowManager::togglePostProcessorHud()
{
if (!MWBase::Environment::get().getWorld()->getPostProcessor()->isEnabled())
{
messageBox("Postprocessor is not enabled.");
return;
}
bool visible = mPostProcessorHud->isVisible();