summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterdebugmaterials.cpp
diff options
context:
space:
mode:
authorWilliam Todd Stinson <stinson@lindenlab.com>2012-10-09 17:19:24 -0700
committerWilliam Todd Stinson <stinson@lindenlab.com>2012-10-09 17:19:24 -0700
commit8a8339a9a85b930bb01f98f4f99f28082a476309 (patch)
treeab5006ac18216e88cb9de811e5266d6b8afccc66 /indra/newview/llfloaterdebugmaterials.cpp
parent7eea1e20619ff6bfcd83e072c304aa1dcc3d3eeb (diff)
Adding a reset inputs button to the edit tab.
Diffstat (limited to 'indra/newview/llfloaterdebugmaterials.cpp')
-rw-r--r--indra/newview/llfloaterdebugmaterials.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/llfloaterdebugmaterials.cpp b/indra/newview/llfloaterdebugmaterials.cpp
index f6af2b68fa..8e37736394 100644
--- a/indra/newview/llfloaterdebugmaterials.cpp
+++ b/indra/newview/llfloaterdebugmaterials.cpp
@@ -217,6 +217,10 @@ BOOL LLFloaterDebugMaterials::postBuild()
llassert(mPutClearButton != NULL);
mPutClearButton->setCommitCallback(boost::bind(&LLFloaterDebugMaterials::onPutClearClicked, this));
+ LLButton* resetPutValuesButton = findChild<LLButton>("reset_put_values_button");
+ llassert(resetPutValuesButton != NULL);
+ resetPutValuesButton->setCommitCallback(boost::bind(&LLFloaterDebugMaterials::onResetPutValuesClicked, this));
+
mPutScrollList = findChild<LLScrollListCtrl>("put_scroll_list");
llassert(mPutScrollList != NULL);
@@ -387,6 +391,11 @@ void LLFloaterDebugMaterials::onPutClearClicked()
requestPutMaterials(false);
}
+void LLFloaterDebugMaterials::onResetPutValuesClicked()
+{
+ resetObjectEditInputs();
+}
+
void LLFloaterDebugMaterials::onQueryVisibleObjectsClicked()
{
queryViewableObjects();