diff options
author | Graham Madarasz <graham@lindenlab.com> | 2013-05-28 12:28:47 -0700 |
---|---|---|
committer | Graham Madarasz <graham@lindenlab.com> | 2013-05-28 12:28:47 -0700 |
commit | 50158987faa96f7cb879e8dbc7ff48a1240c53a0 (patch) | |
tree | eb5329f16e5202754e032ddb0f89a58b80374f7d /indra | |
parent | 4d66b25abfc28352cefcc7665ecb1ee6e68f858b (diff) |
NORSPEC-211 better handling of diff alpha mode
Diffstat (limited to 'indra')
-rwxr-xr-x | indra/newview/llpanelface.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/newview/llpanelface.cpp b/indra/newview/llpanelface.cpp index 27ca13fcf1..81243484c1 100755 --- a/indra/newview/llpanelface.cpp +++ b/indra/newview/llpanelface.cpp @@ -1822,10 +1822,12 @@ void LLPanelFace::updateMaterial() LLMaterialPtr material( (!new_material) ? new LLMaterial(cur_material->asLLSD()) : new LLMaterial()); llassert_always(material); - material->setDiffuseAlphaMode(getChild<LLComboBox>("combobox alphamode")->getCurrentIndex()); + if (!is_default_blend_mode) + { + material->setDiffuseAlphaMode(getChild<LLComboBox>("combobox alphamode")->getCurrentIndex()); + } material->setAlphaMaskCutoff((U8)(getChild<LLUICtrl>("maskcutoff")->getValue().asInteger())); - if (!norm_map_id.isNull() && (bumpiness == BUMPY_TEXTURE)) { LL_DEBUGS("Materials") << "Setting bumpy texture, bumpiness = " << bumpiness << LL_ENDL; |