Showing the changes to libraries/render-utils/src/RenderScriptingInterface.cpp (1 of 4 files). Show all
Unified · Split
| @@ -15,18 +15,18 @@ RenderScriptingInterface::RenderScriptingInterface() {}; · 14 unmodified lines | |||
| 15 | 15 | ||
| 16 | void RenderScriptingInterface::setEngineToneMappingToneCurve(const QString& toneCurve) { | 16 | void RenderScriptingInterface::setEngineToneMappingToneCurve(const QString& toneCurve) { |
| 17 | if (toneCurve == QString("None")) { | 17 | if (toneCurve == QString("None")) { |
| 18 | _tone._toneCurve = 0; | 18 | _tone.toneCurve = 0; |
| 19 | } else if (toneCurve == QString("Gamma22")) { | 19 | } else if (toneCurve == QString("Gamma22")) { |
| 20 | _tone._toneCurve = 1; | 20 | _tone.toneCurve = 1; |
| 21 | } else if (toneCurve == QString("Reinhard")) { | 21 | } else if (toneCurve == QString("Reinhard")) { |
| 22 | _tone._toneCurve = 2; | 22 | _tone.toneCurve = 2; |
| 23 | } else if (toneCurve == QString("Filmic")) { | 23 | } else if (toneCurve == QString("Filmic")) { |
| 24 | _tone._toneCurve = 3; | 24 | _tone.toneCurve = 3; |
| 25 | } | 25 | } |
| 26 | } | 26 | } |
| 27 | 27 | ||
| 28 | QString RenderScriptingInterface::getEngineToneMappingToneCurve() const { | 28 | QString RenderScriptingInterface::getEngineToneMappingToneCurve() const { |
| 29 | switch (_tone._toneCurve) { | 29 | switch (_tone.toneCurve) { |
| 30 | case 0: | 30 | case 0: |
| 31 | return QString("None"); | 31 | return QString("None"); |
| 32 | case 1: | 32 | case 1: |