From 50158987faa96f7cb879e8dbc7ff48a1240c53a0 Mon Sep 17 00:00:00 2001 From: Graham Madarasz Date: Tue, 28 May 2013 12:28:47 -0700 Subject: NORSPEC-211 better handling of diff alpha mode --- indra/newview/llpanelface.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'indra') 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("combobox alphamode")->getCurrentIndex()); + if (!is_default_blend_mode) + { + material->setDiffuseAlphaMode(getChild("combobox alphamode")->getCurrentIndex()); + } material->setAlphaMaskCutoff((U8)(getChild("maskcutoff")->getValue().asInteger())); - if (!norm_map_id.isNull() && (bumpiness == BUMPY_TEXTURE)) { LL_DEBUGS("Materials") << "Setting bumpy texture, bumpiness = " << bumpiness << LL_ENDL; -- cgit v1.2.3