summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorTonya Souther <tonya.souther@gmail.com>2013-02-03 23:00:37 -0600
committerTonya Souther <tonya.souther@gmail.com>2013-02-03 23:00:37 -0600
commitda82358116606a76c84379fe8877ec7339c169e2 (patch)
tree9eea05569841d0d6605f9e7a5fdff750f14ce5c1 /indra/newview
parentd149aea87c3214ea9510ea43a7e23e03cdcb27e6 (diff)
Enable sending material updates.
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llpanelface.cpp44
1 files changed, 9 insertions, 35 deletions
diff --git a/indra/newview/llpanelface.cpp b/indra/newview/llpanelface.cpp
index 474fa9d58e..e0f9ec9b99 100644
--- a/indra/newview/llpanelface.cpp
+++ b/indra/newview/llpanelface.cpp
@@ -1206,23 +1206,6 @@ void LLPanelFace::refresh()
void LLPanelFace::onMaterialLoaded(const LLMaterialID& material_id, const LLMaterialPtr material)
{
mMaterial = material;
-#if 0
- static LLMaterialID old_material_id = LLMaterialID::null;
- if (material_id == old_material_id)
- {
- llinfos << "Material ID " << material_id.asString()
- << " unchanged, not updating" << llendl;
- return;
- }
- else
- {
- llinfos << "Material ID changed, old " << old_material_id.asString()
- << ", new " << material_id.asString()
- << ", updating controls: " << material->asLLSD()
- << llendl;
- }
- old_material_id = material_id;
-#endif
// Alpha
LLCtrlSelectionInterface* combobox_alphamode =
childGetSelectionInterface("combobox alphamode");
@@ -1385,8 +1368,7 @@ void LLPanelFace::onCommitColor(const LLSD& data)
void LLPanelFace::onCommitShinyColor(const LLSD& data)
{
- llinfos << "updating material" << llendl;
- //updateMaterial();
+ updateMaterial();
}
void LLPanelFace::onCommitAlpha(const LLSD& data)
@@ -1528,7 +1510,6 @@ void LLPanelFace::onCommitTexGen(LLUICtrl* ctrl, void* userdata)
// static
void LLPanelFace::updateShinyControls(LLUICtrl* ctrl, void* userdata)
{
- llinfos << "Entered." << llendl;
LLPanelFace* self = (LLPanelFace*) userdata;
LLComboBox* comboShiny = self->getChild<LLComboBox>("combobox shininess");
if (!comboShiny)
@@ -1550,14 +1531,12 @@ void LLPanelFace::onCommitShiny(LLUICtrl* ctrl, void* userdata)
{
LLPanelFace* self = (LLPanelFace*) userdata;
self->sendShiny();
- llinfos << "updating material" << llendl;
- //self->updateMaterial();
+ self->updateMaterial();
}
// static
void LLPanelFace::updateAlphaControls(LLUICtrl* ctrl, void* userdata)
{
- llinfos << "Entered." << llendl;
LLPanelFace* self = (LLPanelFace*) userdata;
LLComboBox* comboAlphaMode = self->getChild<LLComboBox>("combobox alphamode");
if (!comboAlphaMode)
@@ -1573,10 +1552,9 @@ void LLPanelFace::updateAlphaControls(LLUICtrl* ctrl, void* userdata)
// static
void LLPanelFace::onCommitAlphaMode(LLUICtrl* ctrl, void* userdata)
{
- //LLPanelFace* self = (LLPanelFace*) userdata;
+ LLPanelFace* self = (LLPanelFace*) userdata;
updateAlphaControls(ctrl,userdata);
- llinfos << "updating material" << llendl;
- //self->updateMaterial();
+ self->updateMaterial();
}
// static
@@ -1630,29 +1608,25 @@ void LLPanelFace::onSelectTexture(const LLSD& data)
void LLPanelFace::onCommitMaterialTexture( const LLSD& data )
{
- llinfos << "updating material" << llendl;
- //updateMaterial();
+ updateMaterial();
}
void LLPanelFace::onCancelMaterialTexture(const LLSD& data)
{
// not sure what to do here other than
- llinfos << "updating material" << llendl;
- //updateMaterial();
+ updateMaterial();
}
void LLPanelFace::onSelectMaterialTexture(const LLSD& data)
{
- llinfos << "updating material" << llendl;
- //updateMaterial();
+ updateMaterial();
}
//static
void LLPanelFace::onCommitMaterial(LLUICtrl* ctrl, void* userdata)
{
- llinfos << "updating material" << llendl;
- //LLPanelFace* self = (LLPanelFace*) userdata;
- //self->updateMaterial();
+ LLPanelFace* self = (LLPanelFace*) userdata;
+ self->updateMaterial();
}
// static