NORSPEC-211 better handling of diff alpha mode

meow-7.2.2
Graham Madarasz 2013-05-28 12:28:47 -07:00
parent 4d66b25abf
commit 50158987fa
1 changed files with 4 additions and 2 deletions

View File

@ -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;