Showing the changes to interface/src/scripting/RenderScriptingInterface.cpp (1 of 5 files). Show all
Unified · Split
| @@ -10,8 +10,6 @@ · 9 unmodified lines | ||
| 10 | 10 | #include "LightingModel.h" |
| 11 | 11 | #include "AntialiasingEffect.h" |
| 12 | 12 | |
| 13 | −const QString DEFERRED = "deferred"; | |
| 14 | −const QString FORWARD = "forward"; | |
| 15 | 13 | |
| 16 | 14 | RenderScriptingInterface* RenderScriptingInterface::getInstance() { |
| 17 | 15 | static RenderScriptingInterface sharedInstance; |
| @@ -45,11 +43,12 @@ void RenderScriptingInterface::setRenderMethod(RenderScriptingInterface::RenderM · 27 unmodified lines | ||
| 45 | 43 | _renderMethodSetting.set(newMethod); |
| 46 | 44 | config->setBranch(newMethod); |
| 47 | 45 | emit config->dirtyEnabled(); |
| 46 | + emit settingsChanged(); | |
| 48 | 47 | } |
| 49 | 48 | } |
| 50 | 49 | |
| 51 | 50 | QStringList RenderScriptingInterface::getRenderMethodNames() const { |
| 52 | − static const QStringList refrenderMethodNames = { "Deferred", "Forward" }; | |
| 51 | + static const QStringList refrenderMethodNames = { "DEFERRED", "FORWARD" }; | |
| 53 | 52 | return refrenderMethodNames; |
| 54 | 53 | } |
| 55 | 54 | |
| @@ -72,6 +71,7 @@ void RenderScriptingInterface::setShadowsEnabled(bool enabled) { · 16 unmodified lines | ||
| 72 | 71 | Menu::getInstance()->setIsOptionChecked(MenuOption::Shadows, enabled); |
| 73 | 72 | _shadowsEnabledSetting.set(enabled); |
| 74 | 73 | lightingModelConfig->setShadow(enabled); |
| 74 | + emit settingsChanged(); | |
| 75 | 75 | } |
| 76 | 76 | } |
| 77 | 77 | |
| @@ -94,6 +94,7 @@ void RenderScriptingInterface::setAmbientOcclusionEnabled(bool enabled) { · 16 unmodified lines | ||
| 94 | 94 | Menu::getInstance()->setIsOptionChecked(MenuOption::AmbientOcclusion, enabled); |
| 95 | 95 | _ambientOcclusionEnabledSetting.set(enabled); |
| 96 | 96 | lightingModelConfig->setAmbientOcclusion(enabled); |
| 97 | + emit settingsChanged(); | |
| 97 | 98 | } |
| 98 | 99 | } |
| 99 | 100 | |
| @@ -123,5 +124,7 @@ void RenderScriptingInterface::setAntialiasingEnabled(bool enabled) { · 23 unmodified lines | ||
| 123 | 124 | mainViewJitterCamConfig->none(); |
| 124 | 125 | mainViewAntialiasingConfig->setDebugFXAA(true); |
| 125 | 126 | } |
| 127 | + | |
| 128 | + emit settingsChanged(); | |
| 126 | 129 | } |
| 127 | 130 | } |