diff options
| author | Dave Parks <davep@lindenlab.com> | 2022-09-29 00:19:52 -0500 |
|---|---|---|
| committer | Dave Parks <davep@lindenlab.com> | 2022-09-29 00:19:52 -0500 |
| commit | 411aa9f727efba971c8577cef4d6a31f096a6fea (patch) | |
| tree | 7cc32ed6726014613c8a38bee9a5d79476249a3c /indra/newview/llmaterialeditor.cpp | |
| parent | 2e499bcc40871b6a68700203cc83fe7d81c79c24 (diff) | |
SL-18190 Fix for haze color being completely wrong (now it's just half wrong).
Diffstat (limited to 'indra/newview/llmaterialeditor.cpp')
| -rw-r--r-- | indra/newview/llmaterialeditor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llmaterialeditor.cpp b/indra/newview/llmaterialeditor.cpp index 3245c6629a..27694e9ce4 100644 --- a/indra/newview/llmaterialeditor.cpp +++ b/indra/newview/llmaterialeditor.cpp @@ -413,12 +413,12 @@ void LLMaterialEditor::setEmissiveUploadId(const LLUUID& id) LLColor4 LLMaterialEditor::getEmissiveColor() { - return LLColor4(childGetValue("emissive color")); + return linearColor4(LLColor4(childGetValue("emissive color"))); } void LLMaterialEditor::setEmissiveColor(const LLColor4& color) { - childSetValue("emissive color", color.getValue()); + childSetValue("emissive color", srgbColor4(color).getValue()); } LLUUID LLMaterialEditor::getNormalId() |
